From 469a9f36c0d5566e74dafffe3ea06db3d4558f0e Mon Sep 17 00:00:00 2001 From: gabiermi Date: Thu, 2 May 2024 16:22:14 +0300 Subject: [PATCH] fix --- omnisend/class-omnisend-core-bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnisend/class-omnisend-core-bootstrap.php b/omnisend/class-omnisend-core-bootstrap.php index a410db6..6ee644e 100644 --- a/omnisend/class-omnisend-core-bootstrap.php +++ b/omnisend/class-omnisend-core-bootstrap.php @@ -52,7 +52,7 @@ public static function load(): void { // phpcs:ignore because linter could not detect internal, but it is fine add_filter('cron_schedules', 'Omnisend_Core_Bootstrap::cron_schedules'); // phpcs:ignore add_action( 'rest_api_init', 'Omnisend_Core_Bootstrap::omnisend_register_connection_routes' ); - add_action( 'admin_head', 'Omnisend_Core_Bootstrap::hide_notices' ); + add_action( 'in_admin_header', 'Omnisend_Core_Bootstrap::hide_notices' ); add_action( 'admin_notices', 'Omnisend_Core_Bootstrap::admin_notices' ); add_action( 'admin_menu', 'Omnisend_Core_Bootstrap::add_admin_menu' );