wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_wp_apply_block_content_filters is private and should not be used in themes or plugins directly.
_wp_apply_block_content_filters › WordPress Function
Seit7.1.0
Veraltetn/v
› _wp_apply_block_content_filters ( $content, $context = '', $seen_ids = null, $id = null )
| Zugriff: |
|
| Parameter: (4) |
|
| Gibt zurück: |
|
| Definiert in: |
|
| 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.Quellcode
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;
}