• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

QUESTION Where to find list of hidden admin notices?

menathor

New member
Messages
1
Likes
0
Points
1
#1
Hi guys!

Can you tell me where I can find a list of all the hidden admin notices and their slugs? I have another site where I just need to remove 4 notices, so I don't need to install the whole plugin on that site. If I can find these slugs in the plugin's settings / database in my own site, then I can just add some lines like this to the other site:

remove_action( 'admin_notices', 'woothemes_updater_notice' );
remove_action( 'admin_notices', 'another_admin_notice' );
remove_action( 'admin_notices', 'yetanotheranother_admin_notice' );

Thanks!
 

Temyk

Support team
Staff member
Messages
221
Likes
13
Points
18
#2
Hello,

The plugin doesn't store an open list of hidden notices with slugs.
Our plugin has a special algorithm that filters the output of notifications. Your example will not work in most cases. If you want to go the hard way, you have to find the handlers yourself and remove them using remove_action or through the filter of the $wp_filters global variable.
OR use our convenient plugin Disable Admin Notices :) It is also a part of Clearfy plugin.

If you have any questions or comments, please let me know and I'll be more than glad to assist you.
 
Last edited: