• Resolved elkex

    (@elkex)


    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!

    • This topic was modified 3 years, 10 months ago by elkex.
    • This topic was modified 3 years, 10 months ago by elkex.
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.