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_typesParameter 1
$block_editor_contextParameter 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.