How to suppress MainWP Dasboard notification?

Hi,

Is there an easy way to suppress all notifications in the MainWP dashboard?
https://share.getcloudapp.com/4gulxG8E

We already have these notifications on the WP dashboard, no need to have them show up again on the MainWP dashboard. It also creates confusion for my VA.

Thanks

Just wondering what VA means?

Basically, the notices that show in the area that you showed in your screenshot are notices that are hooked into the admin_notices WP default hook.

If you want to hide them, you can use the following command to unset the whole hook:

remove_all_actions( 'admin_notices' );

You can find more details here.

2 Likes

If I am correct, it should be Virtual Assistant

3 Likes

Thanks @bogdan
It’s works.

I’m using this:
if (!is_admin()) {
remove_all_actions( ‘admin_notices’ );

Yeah, VA = virtual assistant

1 Like

!is_admin() means that this will be executed in the frontend of the website, because is_admin() will test if the WP backend (dashboard) is loaded. And don’t forget to close the if statement with }

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.