I'm trying to get the Post ID and the Post Type inside of my MU Plugin; functions like: get_the_ID()
and get_post_type()
return false
, instead of the desire values.
I read that many functions are available after MU Plugins, not before.
So...Does anyone have tried to use Posts functions inside of MU Plugins? How do you resolve?
I'm thinking to use a query database to get the post metadata, but I don't know how efficient will be this method.
Thanks, I'll really appreciate the answer.
wp
wordpress.stackexchange.com/questions/26537/…wp
action. So that's the main problem.wp
, so I'm also not sure what you're trying to do with that.