the_content

  • apply_filters( 'the_content', get_post_field( 'post_content', $page->ID ) ) )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-compatibility.php :: Trac Source Line: 1107
      			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 ************************************************************/
      
    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-compatibility.php :: Trac Source Line: 1132
      			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' )
    $tag: the_content
    $function_to_add: bbp_replace_the_content
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-compatibility.php :: Trac Source Line: 1026
      		 * 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 );
      }
      
      /**
      

Comments are closed.