[wp-trac] [WordPress Trac] #46651: Site Health: no room for the admin notices

WordPress Trac noreply at wordpress.org
Tue Mar 26 10:12:24 UTC 2019


#46651: Site Health: no room for the admin notices
-------------------------------------------------+-------------------------
 Reporter:  afercia                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.2
Component:  Administration                       |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots site-health has-     |     Focuses:
  patch needs-design-feedback                    |
-------------------------------------------------+-------------------------

Comment (by afercia):

 To quickly test an admin notice, you can add the following in your theme's
 functions.php:

 {{{
 function sample_admin_notice__info() {
         ?>
         <div class="notice notice-info">
                 <p><?php _e( 'My awesome info notice!', 'sample-text-
 domain' ); ?></p>
         </div>
         <?php
 }
 add_action( 'admin_notices', 'sample_admin_notice__info' );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46651#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list