Skip to content

Instantly share code, notes, and snippets.

CHRCLMNKY chrclmnky

Block or report user

Report or block chrclmnky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chrclmnky
chrclmnky / gist:b9c5113f00dbbc098af7f57cced7693e
Created Jun 23, 2017
Copied from https://gist.github.com/theukedge - Add anything at the end of a Wordpress post.
View gist:b9c5113f00dbbc098af7f57cced7693e
<?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);
You can’t perform that action at this time.