Home/Hooks/allowed_block_types_all
FILTER

allowed_block_types_all

Filters the allowed block types for all editor types. Default true (all registered block types supported).

wp-includes/block-editor.php
Line 127
2 Parameters
View Source

Usage

add_filter( 'allowed_block_types_all', 'your_callback_function', 10, 2 );

Filter Callback:

function your_callback_function( $allowed_block_types, $block_editor_context ) {
    // Your code here
    return $allowed_block_types;
}

Parameters

$allowed_block_types

Parameter 1

$block_editor_context

Parameter 2

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.