Usage
add_filter( 'allowed_block_types', 'your_callback_function', 10, 3 );Filter Callback:
function your_callback_function( array($allowed_block_types, $post), '5.8.0', 'allowed_block_types_all' ) {
// Your code here
return array($allowed_block_types, $post);
}Parameters
array($allowed_block_types, $post)Parameter 1
'5.8.0'Parameter 2
'allowed_block_types_all'Parameter 3
🔄 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.