.update-nag, .updated, .error, .notice, .is-dismissible { display: none !important; }'; } } public function alertwise_display_admin_notices() { $screen = get_current_screen(); $allowed_screens = apply_filters( 'alertwise_connection_notice_allowed_screens', [ 'dashboard', 'plugins', ] ); if ('toplevel_page_alertwise' === $screen->base || !in_array($screen->id, $allowed_screens, true)) { return; } $settings = Options::get_site_settings(); $api_key = ArrayHelper::get($settings, 'alertwise_setting_password'); if (!$api_key) { Alertwise::output_view('site-not-connected.php'); } } }