excerpt_remove_blocks
excerpt_remove_blocks ( $content )
Parameters:- (string) content The content to parse.
Returns:- (string) The parsed and filtered content.
Defined at: - Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
Description
Parses blocks out of a content string, and renders those appropriate for the excerpt.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.