[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters
WordPress Trac
noreply at wordpress.org
Wed Oct 4 20:17:17 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 adamsilverstein):
After careful consideration around the risks involved in committing to
this API as is, I am going to revert `wp.hooks` for the remainder of the
`4.9` cycle with a plan to commit again early in the next release cycle.
We released a beta of the hooks library
[https://www.npmjs.com/package/@wordpress/hooks on npm], so developers can
(please!) try hooks now in JavaScript projects with `npm install
@wordpress/hooks` and also follow development on the
[https://github.com/WordPress/packages packages repository].
As disappointed as it is to see this reverted, I am excited about
exploring [https://github.com/WordPress/packages/pull/40 adding hooks via
composition] which will make hooks more useful for legacy as well as
modern JavaScript. This is why I have decided to revert for now: it is
important we get the hooks library working just how we want it before we
ship it with a WordPress release.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21170#comment:189>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list