method_filter_content()
method_filter_content( $content )
Runs a string through WordPress’s the_content filter pipeline.
Description
Applies WordPress’s the_content filter to a string, processing shortcodes, wpautop, embeds, and any other registered content filters. Useful for rendering stored content from CMB2 WYSIWYG fields or post meta with full WordPress formatting.
Parameters
$content (string) :
The content string to filter.
Return
(string) The filtered content.
Source
File: lib/helper-functions.php
Usage
PHP
$rendered = method_filter_content( get_post_meta( $post_id, '_my_content', true ) );