Created
June 23, 2017 22:48
-
-
Save chrclmnky/b9c5113f00dbbc098af7f57cced7693e to your computer and use it in GitHub Desktop.
Copied from https://gist.github.com/theukedge - Add anything at the end of a Wordpress post.
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 diww_add_post_content($content) { | |
if (is_single()) { | |
$content .= '<p><div id="newsletter-box">Please subscribe to <a title="Do More With WordPress" href="http://www.doitwithwp.com/go/newsletter">our newsletter</a></div></p>'; | |
} | |
return $content; | |
} | |
add_filter ('the_content', 'diww_add_post_content', 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment