wp_admin_notice_markup
Filters the markup for an admin notice.
Usage
add_filter( 'wp_admin_notice_markup', 'wp_kama_admin_notice_markup_filter', 10, 3 ); /** * Function for `wp_admin_notice_markup` filter-hook. * * @param string $markup The HTML markup for the admin notice. * @param string $message The message for the admin notice. * @param array $args The arguments for the admin notice. * * @return string */ function wp_kama_admin_notice_markup_filter( $markup, $message, $args ){ // filter... return $markup; }
- $markup(string)
- The HTML markup for the admin notice.
- $message(string)
- The message for the admin notice.
- $args(array)
- The arguments for the admin notice.
Changelog
Since 6.4.0 | Introduced. |
Where the hook is called
wp_admin_notice_markup
wp-includes/functions.php 8971
return apply_filters( 'wp_admin_notice_markup', $markup, $message, $args );