apply_filters( ‘excerpt_allowed_blocks’, string[] $allowed_blocks )

In this article

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

Description

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

Parameters

$allowed_blocksstring[]
The list of names of allowed blocks.

Source

$allowed_blocks = apply_filters( 'excerpt_allowed_blocks', $allowed_blocks );

Changelog

VersionDescription
5.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.