The best way to Disguise WordPress Admin Notifications

The extra WordPress plugis you you, the extra annoying notifications you’ll get. Subsequently, on this video I’m going to point out you two straightforward strategies learn how to disguise WordPress admin notiofications.

Video: The best way to Disguise WordPress Admin Notifications?

The best way to Disguise WordPress Admin Notifications?

Add this snippet insideo your baby theem’s capabilities.php file or higher but, use Code Snippets plugin for it.

// Disguise WordPress Admin Notifications programmatically
operate pr_disable_admin_notices() {
        world $wp_filter;
            if ( is_user_admin() ) {
                if ( isset( $wp_filter['user_admin_notices'] ) ) {
                                unset( $wp_filter['user_admin_notices'] );
                }
            } elseif ( isset( $wp_filter['admin_notices'] ) ) {
                        unset( $wp_filter['admin_notices'] );
            }
            if ( isset( $wp_filter['all_admin_notices'] ) ) {
                        unset( $wp_filter['all_admin_notices'] );
            }
    }
add_action( 'admin_print_scripts', 'pr_disable_admin_notices' );

DON'T MISS NEW ARTICLES

We don’t spam! Read our privacy policy for more info.

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart
Scroll to Top
Loading...