-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP 5.6 getCurrentPostType and others not working anymore #28225
Comments
Would someone be able to provide a full, working example of how to use |
@nickpish Came across this today and pieced together an answer to the question as I had it as well. As mentioned above
I'm not certain this is the most efficient way, but since |
Thank you, @MarkMarzeottiDI - I will give this a shot! |
Hello!
After updating to WordPress 5.6, we noticed that getting the getCurrentPostType, getCurrentPostId,... API functions are not working anymore.
I cannot seem to find an alternative or updated version of this hook.
Anyone an idea?
Thanks in advance!
The text was updated successfully, but these errors were encountered: