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

WordPress Trac noreply at wordpress.org
Sun Jul 23 14:47:13 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 jnylen0):

 Replying to [comment:133 azaozz]:
 > Being able to control which actions and filters run at a particular time
 is a pretty important thing imho. Also, I'm tired of having to add "Doing
 it wrong.." in more and more places. All of these usually indicate some
 requirement that was missed when implementing a feature. Look at
 shortcodes... :)

 Ok... I'm thinking for the initial version we can try something like this:

 - Implement jQuery-style namespaces.
 - Require either a namespace or a function with a name.

 We can always take away restrictions later; adding new restrictions is
 more problematic.

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


More information about the wp-trac mailing list