Completely Disable Comments

// Disable comments on admin init add_action(‘admin_init’, function () { global $pagenow; // Redirect any user trying to access comments page if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable…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

WP Simple Pay: Increase Input Font Size

.simpay-styled .simpay-form-control input[type=date], .simpay-styled .simpay-form-control input[type=time], .simpay-styled .simpay-form-control input[type=datetime-local], .simpay-styled .simpay-form-control input[type=week], .simpay-styled .simpay-form-control input[type=month], .simpay-styled .simpay-form-control input[type=text], .simpay-styled .simpay-form-control input[type=email], .simpay-styled .simpay-form-control input[type=url], .simpay-styled .simpay-form-control input[type=password], .simpay-styled .simpay-form-control input[type=search], .simpay-styled .simpay-form-control input[type=tel], .simpay-styled .simpay-form-control input[type=number], .simpay-styled .simpay-form-control select, .simpay-styled…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