wp_admin_notice_args
Filters the arguments for an admin notice.
Использование
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(массив)
- The arguments for the admin notice.
- $message(строка)
- The message for the admin notice.
Список изменений
| С версии 6.4.0 | Введена. |
Где вызывается хук
wp_admin_notice_args
wp-includes/functions.php 9046
$args = apply_filters( 'wp_admin_notice_args', $args, $message );