allowed_block_types_all WordPress Filter Hook

The allowed_block_types_all hook allows you to modify the list of allowed block types. This can be useful if you want to add or remove block types from the list.

apply_filters( 'allowed_block_types_all', bool|string[] $allowed_block_types, WP_Block_Editor_Context $block_editor_context ) #

Filters the allowed block types for all editor types.


Parameters

$allowed_block_types

(bool|string[])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.


Top ↑

Source

File: wp-includes/block-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.