Skip to content

Commit

Permalink
Fix "ERROR: HookInvalidArgs - src/Integration.php:89:4 - Hook "admin_…
Browse files Browse the repository at this point in the history
…notices" does not accept any args, but the default number of args of add_action is 1. Please pass 0 as 4th argument".
  • Loading branch information
remcotolsma committed May 3, 2024
1 parent b439bba commit 590d1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 590d1fd

Please sign in to comment.