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_7719' );
function filter_function_name_7719( $allowed_blocks ){
	// filter...

	return $allowed_blocks;
The list of allowed blocks.

Список изменений

С версии 5.0.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WordPress

Использование не найдено.