wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_admin_notice › WordPress Function
Depuis6.4.0
Dépréciéen/a
› wp_admin_notice ( $message, $args = array() )
Paramètres: (2) |
|
Défini(e) dans: |
|
Codex: |
Outputs an admin notice.
Fonctions en relation: 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 ) ); }