apply_filters( 'allowed_block_types_all', bool|array $allowed_block_types, WP_Block_Editor_Context $block_editor_context )
Filters the allowed block types for all editor types.
Parameters
- $allowed_block_types
-
(bool|array) Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported).
- $block_editor_context
-
(WP_Block_Editor_Context) The current block editor context.
Source
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/allowed_block_types_all