wp_admin_notice хук-событиеWP 6.4.0

Fires before an admin notice is output.

Использование

add_action( 'wp_admin_notice', 'wp_kama_admin_notice_action', 10, 2 );

/**
 * Function for `wp_admin_notice` action-hook.
 * 
 * @param string $message The message for the admin notice.
 * @param array  $args    The arguments for the admin notice.
 *
 * @return void
 */
function wp_kama_admin_notice_action( $message, $args ){

	// action...
}
$message(строка)
The message for the admin notice.
$args(массив)
The arguments for the admin notice.

Список изменений

С версии 6.4.0 Введена.

Где вызывается хук

wp_admin_notice()
wp_admin_notice
wp-includes/functions.php 9063
do_action( 'wp_admin_notice', $message, $args );

Где используется хук в WordPress

Использование не найдено.