[wp-trac] [WordPress Trac] #22250: Useful helper function, add_action_with_args()

WordPress Trac noreply at wordpress.org
Mon Oct 22 18:25:46 UTC 2012


#22250: Useful helper function, add_action_with_args()
-------------------------+------------------------------
 Reporter:  rzen         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  close        |
-------------------------+------------------------------
Changes (by scribu):

 * keywords:  2nd-opinion dev-feedback => close


Comment:

 I think we should wait for PHP 5.3 to become more widespread:

 {{{
 add_action( 'wp_footer', function() {
   get_sidebar( 'footer' );
 } );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22250#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list