Created
March 19, 2019 03:03
-
-
Save wplokal/395a72f45b05e29579d46a865454e960 to your computer and use it in GitHub Desktop.
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
<?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