Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created August 10, 2017 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellofromtonya/a533e75fced9c9da41e4b73d5cc70f5b to your computer and use it in GitHub Desktop.
Save hellofromtonya/a533e75fced9c9da41e4b73d5cc70f5b to your computer and use it in GitHub Desktop.
Episode 3 - PHP Output Buffer Basics
add_filter( 'the_content', __NAMESPACE__ . '\add_markup_to_content' );
function add_markup_to_content( $content ) {
$html = '<div class="entry-content-container" itemprop="text"><div class="wrap">';
$html .= $content;
$html .= '</div></div>';
return $html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment