Category: Uncategorized

  • How to Disable All WPBakery Notices in WordPress

    Tired of WPBakery admin notices cluttering your dashboard? You can disable them all with a simple snippet — no plugin hacks required.

    Just add this to your theme’s functions.php or a custom plugin:

    add_filter('get_user_metadata', function ($value, $object_id, $meta_key, $single, $meta_type) {
    	if ($meta_key === 'wpb_notice_close_list') {
    		// Fake list of closed notices (e.g. IDs 1-9999)
    		return [ json_encode(range(1, 9999)) ];
    	}
    	return null;
    }, 10, 5);

    This trick tells WPBakery that the current user has already closed every possible notice (IDs 1–9999). As a result, no notices will be shown.

    It’s a clean and effective way to keep your WordPress admin interface tidy — especially useful for white-label projects or client sites.

  • WP Adminify | Set your custom styles and colors

    
    add_action( 'admin_head', function () {
    	echo '<style>
    		body.wp-adminify {
    			--adminify-primary: rgb(14,147,152);
    			--adminify-menu-hover-bg: rgb(14,147,152);
    			--adminify-menu-active-bg: rgb(14,147,152);
    			--adminify-submenu-text-hover-color: rgb(14,147,152);
    			--adminify-submenu-active-color: rgb(14,147,152);
    			--adminify-notif-bg-color: rgb(14,147,152);
    		}
    	</style>';
    } );