Core Function
View Source on Trac ↗ wp_get_admin_notice()
wp_get_admin_notice( mixed $message, mixed $args = array() ) Creates and returns the markup for an admin notice.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $message string | The message. Required |
| array | $args { Optional. An array of arguments for the admin notice. Default empty array. Required |
Return Value
(string)
The markup for an admin notice.
Function Information
Since Version
6.4.0
Source File
wp-includes/functions.php
Advertisement