id == 'toplevel_page_access-control') { $classes .= 'pl-access-control-admin-page '; } return $classes; } public static function pl_access_control_remove_admin_notifications() { $screen = get_current_screen(); if ($screen && $screen->id === 'toplevel_page_access-control') { remove_all_actions('admin_notices'); remove_all_actions('all_admin_notices'); } } }