Limit Comments & Display Character Count

if ( ! class_exists( ‘WPCode_Comment_Limit_Counter’ ) ) { class WPCode_Comment_Limit_Counter { // Update this value to change the maximum number of characters allowed in a comment. protected $comment_max_length = 1000; // Update this value to change the minimum number of…Continue reading

Content Search

add_action(‘admin_menu’, ‘content_search_add_admin_menu’); add_action(‘admin_head’, ‘content_search_custom_styles’); function content_search_add_admin_menu() { add_menu_page( ‘Content Search’, ‘Content Search’, ‘manage_options’, ‘content-search’, ‘content_search_page’, ‘dashicons-search’, 6 ); } function content_search_custom_styles() { ?> Content Search The Content Search feature enables you to find specific text within your WordPress site’s content.…Continue reading

Add user registration date

/* * Creating a column (it is also possible to remove some default ones) */ add_filter( ‘manage_users_columns’, ‘rudr_modify_user_table’ ); function rudr_modify_user_table( $columns ) { // unset( $columns[‘posts’] ); // maybe you would like to remove default columns $columns[ ‘registration_date’ ]…Continue reading

Disable Attachment Filters to Fix Envira Gallery

add_action( ‘plugins_loaded’, function(){ remove_filter(‘attachment_fields_to_edit’, array(‘Fusion_Images’, ‘add_image_meta_fields’), 10); remove_filter(‘attachment_fields_to_edit’, array(‘Avada_Images’, ‘add_image_meta_fields’), 10); }, 99); function remove_masonry($fields) { unset($fields[‘fusion_masonry_element_layout’]); return $fields; } add_filter(‘attachment_fields_to_edit’, ‘remove_caption’, 99);Continue reading