Filter hook 'excerpt_allowed_blocks'
in WP Core File wp-includes/blocks.php at line 1859
Description
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.
Occurrences
Filename |
Line Number |
wp-includes/blocks.php |
1859 |
Parameters
Type |
Name |
Description |
string[] |
$allowed_blocks |
The list of names of allowed blocks. |
PHP Doc
/**
* 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.
*
* @since 5.0.0
*
* @param string[] $allowed_blocks The list of names of allowed blocks.
*/