• Hi,

    I am building some blocks and need to be able to store the Custom Post Type the block is created in as a value into de block’s data.

    I’ve tried with get_current_screen() but the result is NULL.

    Any idea how I can achieve this?

    Thank you!

  • The topic ‘Store Custom Post Type in Block’ is closed to new replies.