-
apply_filters( 'the_content', get_post_field( 'post_content', $page->ID ) ) )
Source Reference:
-
if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) { // Start output buffer ob_start(); // Restore previously unset filters bbp_restore_all_filters( 'the_content' ); // Grab the content of this page $new_content = do_shortcode( apply_filters( 'the_content', get_post_field( 'post_content', $page->ID ) ) ); // Clean up the buffer ob_end_clean(); // No page so show the archive } else { $new_content = $bbp->shortcodes->display_forum_index(); } /** Topics ************************************************************/ -
if ( $page = bbp_get_page_by_path( $bbp->topic_archive_slug ) ) { // Start output buffer ob_start(); // Restore previously unset filters bbp_restore_all_filters( 'the_content' ); // Grab the content of this page $new_content = do_shortcode( apply_filters( 'the_content', get_post_field( 'post_content', $page->ID ) ) ); // Clean up the buffer ob_end_clean(); // No page so show the archive } else { $new_content = $bbp->shortcodes->display_topic_index(); }
-
Hook: add_filter: the_content instances (1)
-
add_filter( 'the_content', 'bbp_replace_the_content' )
Source Reference:
-
* prev/next navigation, comments, date/time, etc... You can hook into * the 'bbp_template_include' filter to override page.php. */ if ( bbp_is_theme_compat_active() ) { // Remove all filters from the_content bbp_remove_all_filters( 'the_content' ); // Add a filter on the_content late, which we will later remove add_filter( 'the_content', 'bbp_replace_the_content' ); // Find the appropriate template file $template = bbp_get_theme_compat_templates(); } } return apply_filters( 'bbp_template_include_theme_compat', $template ); } /**
-