WordPress at a glance
filter is not described

excerpt_allowed_blocks filter-hook . WP 5.0.0

Filters the list of blocks that can contribute to the excerpt.

If a dynamic block is added to this list, it must not generate another excerpt, as this will cause an infinite loop to occur.


add_filter( 'excerpt_allowed_blocks', 'filter_function_name_6054' );
function filter_function_name_6054( $allowed_blocks ){
	// filter...

	return $allowed_blocks;
The list of allowed blocks.


Since 5.0.0 Introduced.

Where the hook is called

wp-includes/blocks.php 380
$allowed_blocks = apply_filters( 'excerpt_allowed_blocks', $allowed_blocks );

Where in WP core the hook is used

Usage not found!