Commit 3cbbe1b
📦 NEW: @wordpress/hooks as an available external (#127)
When implementing a block, it would be helpful to have access to the `applyFilters` and `withFilters` provided by Gutenberg.
For example:
```
import {
applyFilters,
} from '@wordpress/hooks';
const getSomething = function() {
return applyFilters( 'blocks.myBlock.getSomething', 'defaultvalue' );
}
```1 parent acee9fe commit 3cbbe1b
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments