[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters
WordPress Trac
noreply at wordpress.org
Sun Jul 23 17:57:17 UTC 2017
#21170: JavaScript actions and filters
-----------------------------+------------------------------
Reporter: koopersmith | Owner: adamsilverstein
Type: feature request | Status: assigned
Priority: normal | Milestone: 4.9
Component: General | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
-----------------------------+------------------------------
Comment (by adamsilverstein):
Thanks for the discussion & work here!
> A plugin should always be able to remove an action or a filter, also
when it is added by another plugin.
Note that we have `removeAllFilters( 'filtername' )` and
`removeAllActions( 'filtername' )` which enables removing all hooked
callbacks (without knowing what they are)...
> Implement jQuery-style namespaces.
> Require either a namespace or a function with a name.
Both sound good if we can figure out how to enforce that requirement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21170#comment:135>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list