W3cubDocs

/WordPress

do_action( ‘wp_admin_notice’, string $message, array $args )

Fires before an admin notice is output.

Parameters

$messagestring
The message for the admin notice.
$argsarray
The arguments for the admin notice.

Source

do_action( 'wp_admin_notice', $message, $args );

Changelog

Version Description
6.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_admin_notice