How do I retrieve the post title when parsing the content with add_filter(‘the_content’, ‘myfunction’, 10);.
I’m making a plugin which embeds links in the bottom of the post based on the terms used in the title and post content.
So in this case, “myfunction” should recieve the title and the content at the same time. Is is possible to do? Do I need to make a fuction to save the title and need to call it from the myfunction?
If you know the way, it would be greatly appreciated.
- The topic ‘Retrieving the Title and Post Content with add_filter’ is closed to new replies.