excerpt_remove_blocks ( $content )
- (string) $content The content to parse.
- (string) The parsed and filtered content.
- Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
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.