Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Add Code or Text in Article*/
- add_filter('the_content', 'add_my_content');
- function add_my_content($content) {
- $first = 'FIRST TEXT OR CODE HERE';
- $last = 'LAST TEXT OR CODE HERE';
- if (is_single()) {
- $content = $first.$content.$last;
- }
- return $content;
- }
Add Comment
Please, Sign In to add comment