@wordpress/hooks 4.29.0 → 4.29.1-next.e256d081a.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -54,6 +54,22 @@ One notable difference between the JS and PHP hooks API is that in the JS versio
54
54
  - `filters`
55
55
  - `defaultHooks`
56
56
 
57
+ ## Parameters
58
+
59
+ ### hookName
60
+
61
+ Should be a non empty string containing only numbers, letters, dashes, periods and underscores. Also, the hook name cannot begin with `__`.
62
+
63
+ - Type: `String`
64
+ - Required: Yes
65
+
66
+ ### namespace
67
+
68
+ Should be a non empty string containing only numbers, letters, dashes, periods, underscores and slashes. It should take the form `vendor/plugin/function`.
69
+
70
+ - Type: `String`
71
+ - Required: Yes
72
+
57
73
  ### Events on action/filter add or remove
58
74
 
59
75
  Whenever an action or filter is added or removed, a matching `hookAdded` or `hookRemoved` action is triggered.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/hooks",
3
- "version": "4.29.0",
3
+ "version": "4.29.1-next.e256d081a.0",
4
4
  "description": "WordPress hooks library.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "445ede01e8abc8e49a1101b21a3651adbe852120"
36
+ "gitHead": "7d529ba9a461795d5f1572d3856de33f744287c2"
37
37
  }