apply_filters_deprecated( 'allowed_block_types', bool|array $allowed_block_types, WP_Post $post )

This hook has been deprecated. Use the ‘allowed_block_types_all’ filter instead.

Filters the allowed block types for the editor.

Parameters

$allowed_block_types

(bool|array) Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported)

$post

(WP_Post) The post resource data.

Source

File: wp-includes/block-editor.php

View on Trac

Changelog

Version Description
5.8.0 Use the 'allowed_block_types_all' filter instead.
5.0.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/allowed_block_types