wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_admin_notice › WordPress Function
Since6.4.0
Deprecatedn/a
› wp_admin_notice ( $message, $args = array() )
Parameters: (2) |
|
Defined at: |
|
Codex: |
Outputs an admin notice.
Related Functions: wp_get_admin_notice, site_admin_notice, wp_admin_css, wp_explain_nonce, wp_admin_canonical_url
Source
function wp_admin_notice( $message, $args = array() ) {
/**
* Fires before an admin notice is output.
*
* @since 6.4.0
*
* @param string $message The message for the admin notice.
* @param array $args The arguments for the admin notice.
*/
do_action( 'wp_admin_notice', $message, $args );
echo wp_kses_post( wp_get_admin_notice( $message, $args ) );
}