[wp-trac] [WordPress Trac] #46635: Improve identifying of non–trivial callbacks in hooks

WordPress Trac noreply at wordpress.org
Fri Jul 12 13:57:55 UTC 2019


#46635: Improve identifying of non–trivial callbacks in hooks
-------------------------+-------------------------------
 Reporter:  Rarst        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  coding-standards
-------------------------+-------------------------------

Comment (by adamsilverstein):

 Noting that for the `wp.hooks` JavaScript implementation (where anonymous
 functions are very common), we added a required namespace parameter
 explicitly so we could (find and) remove hooks.  Is there any way we could
 add something like that to PHP hooks?

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


More information about the wp-trac mailing list