From 590d1fdc7ed740f09ec3d9349ce82efa1d8d210a Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Fri, 3 May 2024 09:58:11 +0200 Subject: [PATCH] Fix "ERROR: HookInvalidArgs - src/Integration.php:89:4 - Hook "admin_notices" does not accept any args, but the default number of args of add_action is 1. Please pass 0 as 4th argument". --- src/Integration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Integration.php b/src/Integration.php index 70cb7cf..e33e5e2 100644 --- a/src/Integration.php +++ b/src/Integration.php @@ -86,7 +86,7 @@ public function __construct( $args = [] ) { $admin_notices_function = [ $this, 'admin_notice_tld_test' ]; if ( ! \has_action( 'admin_notices', $admin_notices_function ) ) { - \add_action( 'admin_notices', $admin_notices_function ); + \add_action( 'admin_notices', $admin_notices_function, 10, 0 ); } }