Hide update alert for no admin user
-
Hello,
I have this alert for “no admin user”Sorry, but you do not have the correct permissions to update the Page Builder by SiteOrigin plugin. Please contact the administrator of this site for help.
can I hide or remove it?
I tested this codeif (!current_user_can('manage_options')) { function hide_update_notice() { remove_action('admin_notices', 'update_nag', 3); } add_action('admin_notices', 'hide_update_notice', 1); }
but it doens’t work.
Can you help me?
- The topic ‘Hide update alert for no admin user’ is closed to new replies.