Filters the allowed block types for the editor.
$allowed_block_typesbool|string[]
$postWP_Post
$allowed_block_types = apply_filters_deprecated( 'allowed_block_types', array( $allowed_block_types, $post ), '5.8.0', 'allowed_block_types_all' );
| Version | Description |
|---|---|
| 5.8.0 | Use the 'allowed_block_types_all' filter instead. |
| 5.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/allowed_block_types