How to disable Admin Notices in WordPress

How to disable Admin Notices in WordPress

Spread The Love

When you work in the WordPress Admin Area, you’ll encounter these annoying Admin Notices.

In this post, we’ll be discussing how to disable admin notices WordPress admin area.

 Plugins Reviews disable admin notices wordpress Image

Disable Admin Notices WordPress:

Just Put this Simple Code in :

Appearance » Editor » functions.php file:

function pr_disable_admin_notices() {
		global $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' );

If this Post helps you, dont forget to share it 🙂 You can also join my Newsletter for instant updates.

  • 5

Himani Bhardwaj

I Himani Bhardwaj founder of Plugins Reviews and also a Professional Developer. I'm a Passionate self-made Girl and plays an active role in the activities of WordPress Plugin Reviews I have also attended Chandigarh WordPress Meetup Sessions. I run an online website geared to help those who wants to Know about WordPress Topmost Plugins, Themes and also who wants to learn about PHP Concepts

This Post Has 2 Comments

  1. Thank you so much!

  2. AWESOME! Thank you!

Leave a Reply

Close Menu