Profiles

  • Member Since: August 14th, 2018
  • Find me on:
  • Posted a reply to JS: get current post format in Gutenberg edit screen to display/hide metafields, on the site WordPress.org Forums:
    You can use wp.data.select( 'core/editor' ).getCurrentPostType(); to get the current post format. Check the doc…