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

---

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

## In this article

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

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

Filters the arguments for an admin notice.

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

 `$args`array

The arguments for the admin notice.

`$message`string

The message for the admin notice.

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

    ```php
    $args       = apply_filters( 'wp_admin_notice_args', $args, $message );
    ```

[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#L9098)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L9098-L9098)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_admin_notice_args/?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_args/?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_args%2F)
before being able to contribute a note or feedback.