wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_admin_notice › WordPress Function
Since6.4.0
已弃用n/a
› wp_admin_notice ( $message, $args = array() )
参数: (2) |
|
定义在: |
|
文档: |
Outputs an admin notice.
Related Functions: wp_get_admin_notice, site_admin_notice, wp_admin_css, wp_explain_nonce, wp_admin_canonical_url
源码
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 ) ); }