wpseek.com
A WordPress-centric search engine for devs and theme authors
_wp_apply_block_content_filters is private and should not be used in themes or plugins directly.
_wp_apply_block_content_filters › WordPress Function
Since7.1.0
Deprecatedn/a
› _wp_apply_block_content_filters ( $content, $context = '', $seen_ids = null, $id = null )
| Access: |
|
| Parameters: (4) |
|
| Returns: |
|
| Defined at: |
|
| Codex: |
Applies standard content filters similar to the 'the_content' filter.
This function runs the typical content processing filters that WordPress applies to post content, useful for blocks that render nested content.Source
function _wp_apply_block_content_filters( $content, $context = '', &$seen_ids = null, $id = null ) {
$content = shortcode_unautop( $content );
$content = do_shortcode( $content );
if ( null !== $seen_ids && null !== $id ) {
$seen_ids[ $id ] = true;
}
try {
$content = do_blocks( $content );
} finally {
if ( null !== $seen_ids && null !== $id ) {
unset( $seen_ids[ $id ] );
}
}
$content = wptexturize( $content );
$content = convert_smilies( $content );
$content = wp_filter_content_tags( $content, $context );
global $wp_embed;
$content = $wp_embed->autoembed( $content );
return $content;
}