Support » Plugins » Plugin development – how to show some text after the_content

  • i am making custom plugin for my site for wordpress and i need to show some text in the post area

    i tried using:

    add_action(‘the_content’, ‘nabexchange’);

    but it replaced the content of the page. how can i make it just show the echo in nabexchange function after the post text?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is what I do…

    add_filter ('the_content', 'insertContent');
    
    function insertContent($content) {
    	$content .= 'Stuff to add after content';
    	return $content;
    }

    thanks 🙂 that’s really what i was looking for 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin development – how to show some text after the_content’ is closed to new replies.