excerpt_allowed_wrapper_blocks WordPress Filter Hook

The excerpt_allowed_wrapper_blocks hook allows you to add additional HTML tags that can be used in the excerpt. This can be useful if you want to add custom formatting to your excerpts.

apply_filters( 'excerpt_allowed_wrapper_blocks', string[] $allowed_wrapper_blocks ) #

Filters the list of blocks that can be used as wrapper blocks, allowing excerpts to be generated from the innerBlocks of these wrappers.


Parameters

$allowed_wrapper_blocks

(string[])The list of names of allowed wrapper blocks.


Top ↑

Source

File: wp-includes/blocks.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.