W3cubDocs

/WordPress

apply_filters( 'excerpt_allowed_blocks', array $allowed_blocks )

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_blocks

(array) The list of allowed blocks.

Source

File: wp-includes/blocks.php

View on Trac

Changelog

Version Description
5.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/excerpt_allowed_blocks