excerpt_allowed_blocks

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'excerpt_allowed_blocks', array $allowed_blocks )

Description 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 Parameters

$allowed_blocks

(array) The list of allowed blocks.

Source Source

File: wp-includes/blocks.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.