Adam Silverstein
f36cccde7e
Add wp.hooks
- JavaScript actions and filters.
Add a JavaScript hooks library with an API that mirrors the WordPress Plugin API; provides similar functionality and API to PHP hooks.
Called via the global `wp.hooks`, eg: `wp.hooks.addAction()`, etc. Adds:
* `addAction( 'hook', 'vendor/plugin/function', callback, priority )`
* `addFilter( 'hook', 'vendor/plugin/function', callback, priority )`
* `removeAction( 'hook', 'vendor/plugin/function' )`
* `removeFilter( 'hook', 'vendor/plugin/function' )`
* `removeAllActions( 'hook' )`
* `removeAllFilters( 'hook' )`
* `doAction( 'hook', arg1, arg2, moreArgs, finalArg )`
* `applyFilters( 'hook', content, arg1, arg2, moreArgs, finalArg )`
* `doingAction( 'hook' )`
* `doingFilter( 'hook' )`
* `didAction( 'hook' )`
* `didFilter( 'hook' )`
* `hasAction( 'hook' )`
* `hasFilter( 'hook' )`
Props adamsilverstein, jnylen0, aduth, kadamwhite, youknowriad, schlessera, mikeschinkel, azaozz, vhauri, CaptainN, scribu, carldanley, chetanchauhan, mgibbs189, stephenharris, justnorris, koopersmith, gcorne, TV productions, atimmer.
Fixes #21170.
Built from https://develop.svn.wordpress.org/trunk@41375
git-svn-id: http://core.svn.wordpress.org/trunk@41208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-12 12:54:45 +00:00
..
2017-08-19 20:10:47 +00:00
2017-09-11 05:23:48 +00:00
2017-07-31 19:50:45 +00:00
2017-09-12 12:54:45 +00:00
2017-09-09 13:49:43 +00:00
2017-09-10 06:33:44 +00:00
2017-07-26 16:45:44 +00:00
2017-06-26 18:24:40 +00:00
2017-07-27 00:41:44 +00:00
2017-08-16 21:11:43 +00:00
2017-08-29 16:43:47 +00:00
2017-08-03 16:13:44 +00:00
2017-08-03 15:24:44 +00:00
2017-09-08 15:01:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-21 15:35:46 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-09-12 07:03:46 +00:00
2017-09-09 13:19:45 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-02 05:35:41 +00:00
2017-07-27 00:41:44 +00:00
2017-09-08 14:03:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-01 16:58:42 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-22 11:12:44 +00:00
2017-08-22 11:12:44 +00:00
2017-08-22 11:12:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-22 11:52:48 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-03 14:34:44 +00:00
2017-08-22 11:52:48 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-09-04 11:17:43 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-01 20:44:43 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-09-10 22:51:43 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-20 20:13:47 +00:00
2017-07-01 13:36:41 +00:00
2017-07-28 01:15:52 +00:00
2017-06-30 04:54:41 +00:00
2017-07-27 00:41:44 +00:00
2017-08-22 11:52:48 +00:00
2017-09-10 06:33:44 +00:00
2017-08-24 17:53:27 +00:00
2017-08-22 11:52:48 +00:00
2017-07-16 01:15:46 +00:00
2017-08-25 23:28:45 +00:00
2017-09-11 05:31:42 +00:00
2017-09-11 14:29:44 +00:00
2017-06-25 22:06:41 +00:00
2017-06-25 22:16:40 +00:00
2017-08-22 11:52:48 +00:00
2017-08-09 04:07:43 +00:00
2017-07-01 22:13:41 +00:00
2017-08-31 11:17:45 +00:00
2017-09-01 12:28:46 +00:00
2017-05-10 06:10:43 +00:00
2017-09-12 03:34:48 +00:00
2017-08-22 11:52:48 +00:00
2017-08-30 19:53:45 +00:00
2017-08-22 11:52:48 +00:00
2017-07-05 21:31:44 +00:00
2017-08-09 21:04:47 +00:00
2017-08-12 13:11:43 +00:00
2017-09-10 21:09:45 +00:00
2017-09-12 12:54:45 +00:00
2017-08-20 20:03:54 +00:00
2017-06-13 01:11:43 +00:00
2017-08-18 18:19:44 +00:00
2017-09-09 13:53:42 +00:00
2017-07-27 08:19:43 +00:00
2017-08-10 01:38:43 +00:00
2017-09-12 12:54:45 +00:00
2017-08-20 20:38:42 +00:00
2017-07-28 01:15:52 +00:00
2017-08-31 12:26:42 +00:00
2017-06-29 16:05:41 +00:00
2017-09-09 13:19:45 +00:00
2017-08-22 11:52:48 +00:00
2017-06-15 12:05:42 +00:00
2017-09-12 12:54:45 +00:00
2017-09-06 21:32:43 +00:00
2017-08-12 12:48:47 +00:00