-
-
Save hellofromtonya/a533e75fced9c9da41e4b73d5cc70f5b to your computer and use it in GitHub Desktop.
Episode 3 - PHP Output Buffer Basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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