Title: wp_admin_notice_markup
Published: November 8, 2023
Last modified: May 20, 2026

---

# apply_filters( ‘wp_admin_notice_markup’, string $markup, string $message, array $args )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#wp--skip-link--target)

Filters the markup for an admin notice.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#parameters)󠁿

 `$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.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'wp_admin_notice_markup', $markup, $message, $args );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/functions.php#L9167)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L9167-L9167)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_get_admin_notice()](https://developer.wordpress.org/reference/functions/wp_get_admin_notice/)`wp-includes/functions.php` |

Creates and returns the markup for an admin notice.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_admin_notice_markup/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.4.0](https://developer.wordpress.org/reference/since/6.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_admin_notice_markup%2F)
before being able to contribute a note or feedback.