Skip to content

Instantly share code, notes, and snippets.

@wplokal
Created March 19, 2019 03:03
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 wplokal/395a72f45b05e29579d46a865454e960 to your computer and use it in GitHub Desktop.
Save wplokal/395a72f45b05e29579d46a865454e960 to your computer and use it in GitHub Desktop.
<?php
function wplokal_before_after($content) {
$beforecontent = 'adsense code before content';
$aftercontent = 'adsense code after content';
$fullcontent = $beforecontent . $content . $aftercontent;
return $fullcontent;
}
add_filter('the_content', 'wplokal_before_after');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment