excerpt_remove_blocks

SummerySummery

Parses blocks out of a content string, and renders those appropriate for the excerpt.

Syntax

excerpt_remove_blocks( string $content )

DescriptionDescription

As the excerpt should be a small string of text relevant to the full post content, this function renders the blocks that are most likely to contain such text.

ParametersParameters

$content

(string) (Required) The content to parse.

ReturnReturn

(string) The parsed and filtered content.

SourceSource

File: wp-includes/blocks.php


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top