WP 5.6 getCurrentPostType not working anymore
-
Hello!
After updating to WordPress 5.6, we noticed that getting the getCurrentPostType, getCurrentPostId API functions are not working anymore.
wp.domReady( () => { const postType = select( 'core/editor' ).getCurrentPostType(); });
I cannot seem to find an alternative or updated version of this hook.
Anyone an idea?
Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WP 5.6 getCurrentPostType not working anymore’ is closed to new replies.