Replacing post content with plugin content
-
Hi folks,
I think this is a basic plugin development query.
I’m trying to render my plugin data in place of the center column content. I can hook in successfully and display the plugin data, but it appears along with whatever post would normally display there, the Hello world default post, for example. So, I’m looking to remove what would normally render there.
I think this is done with a remove filter, but I’ve tried the ones that seem appropriate like:
remove_filter(‘the_content’, “the_post”);
and
remove_filter(‘loop_start’, “the_content”);But the hello world post still appears under my plugin content.
Any info or thoughts on how to replace that content when the plugin activates is much appreciated.
Thanks!
Mark
The topic ‘Replacing post content with plugin content’ is closed to new replies.