[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters

WordPress Trac noreply at wordpress.org
Tue Sep 26 21:06:05 UTC 2017


#21170: JavaScript actions and filters
-----------------------------+-------------------------
 Reporter:  koopersmith      |       Owner:
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  4.9
Component:  General          |     Version:  3.4
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  javascript
-----------------------------+-------------------------

Comment (by westonruter):

 Replying to [comment:182 mgibbs189]:
 > What if one plugin needs to modify or remove hooks defined from another
 plugin? Or remove '''all''' handlers attached to a hook name? How would
 that look w/ the component-based approach?

 A plugin would simply have to call `someOtherComponent.removeFilters(
 'foo' )` instead of `wp.hooks.removeFilters(
 'someOtherComponentNamespace.foo' )`.

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


More information about the wp-trac mailing list