Remove Admin Help

// Remove Admin Help / Kiri Vadivelu / 2026 add_action( ‘admin_head’, ‘remove_admin_help_tabs’ ); function remove_admin_help_tabs() { $screen = get_current_screen(); if ( $screen ) { $screen->remove_help_tabs(); } }Continue reading

Custom Screen Option

// Custom Screen Option / Kiri Vadivelu / 2026 function custom_screen_option() { if ( get_current_user_id() !== 1 ) { // Replace your ID return false; } return true; } add_filter( ‘screen_options_show_screen’, ‘custom_screen_option’ );Continue reading

Completely Disable Comments

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; 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 support for comments and trackbacks in…Continue reading

Disable Automatic Updates Emails

// Disable auto-update emails. // add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for plugins. add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for themes. add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );Continue reading

Disable Jetpack Promotions

add_filter( ‘jetpack_ai_enabled’, ‘__return_false’ ); add_filter( ‘jetpack_just_in_time_msgs’, ‘__return_false’ ); add_filter( ‘jetpack_just_in_time_msgs_allowed’, ‘__return_false’ ); add_filter( ‘jetpack_just_in_time_msgs_allowed_list’, ‘__return_false’ ); add_filter( ‘jetpack_just_in_time_highlight_reel’, ‘__return_false’ ); add_filter( ‘jetpack_show_promotions’, ‘__return_false’ ); add_filter( ‘jetpack_blaze_enabled’, ‘__return_false’ );Continue reading

Completely Disable Comments (copy)

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; 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 support for comments and trackbacks in…Continue reading