[wp-trac] [WordPress Trac] #14671: Deprecate the "accepted args" argument in add_filter() and add_action()

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 12 17:03:39 UTC 2011


#14671: Deprecate the "accepted args" argument in add_filter() and add_action()
-------------------------+-----------------------------
 Reporter:  markjaquith  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by scribu):

 Speaking of reflection, I made a little helper that automatically hooks
 all public methods of a given class:

 http://scribu.net/wordpress/reflection-on-filters.html

 It takes care of {{{$accepted_args}}} and you can even set different
 priorities through DocComments.

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


More information about the wp-trac mailing list