Filter WP_Post object returned from get_post()
-
Is there any possible way to hook to the
get_post()
function and modify the post object?
I looked into the code of theget_post()
function as well as the related functions of theWP_Post
class, but couldn’t find any filter hooks.The reason why I need this is because I’m currently writing a multilingual plugin and I basically need to be able to automatically change the title/content/slug of posts. I can achieve that when the user is querying multiple posts by using the appropriate filters, but I simply can’t find any for
get_post()
in particular.Thanks for your time,
Nikola
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Filter WP_Post object returned from get_post()’ is closed to new replies.