wp_admin_notice_args filter-hookWP 6.4.0

Filters the arguments for an admin notice.

Usage

add_filter( 'wp_admin_notice_args', 'wp_kama_admin_notice_args_filter', 10, 2 );

/**
 * Function for `wp_admin_notice_args` filter-hook.
 * 
 * @param array  $args    The arguments for the admin notice.
 * @param string $message The message for the admin notice.
 *
 * @return array
 */
function wp_kama_admin_notice_args_filter( $args, $message ){

	// filter...
	return $args;
}
$args(array)
The arguments for the admin notice.
$message(string)
The message for the admin notice.

Changelog

Since 6.4.0 Introduced.

Where the hook is called

wp_get_admin_notice()
wp_admin_notice_args
wp-includes/functions.php 8902
$args       = apply_filters( 'wp_admin_notice_args', $args, $message );

Where the hook is used in WordPress

Usage not found.