[Resolved] How do I intercept Post/Page and edit before it is viewed?
I’m looking at using “the_post” action hook possibly, to intercept all pages/posts before they are viewed. The function called may change the content for a single post and so I would like to do this before the post is viewed.
I see that “the_post()” is used within the loop but what I’m unsure about is how to get the actual post values into my function, make any required changes to the content then allow the post to be viewed with the changes.
Is this even possible? If not I would be happy to at least do the content edit using my function and let the user see the old version of the post.
Thanks for any help
- The topic ‘[Resolved] How do I intercept Post/Page and edit before it is viewed?’ is closed to new replies.