How can we help?

How To Remove Duplicate Event Type Meta Box While Using Gutenberg Editor

In order to remove duplicate event type meta box while using Gutenberg editor,

  1. Open your child theme
  2. Enter the following code in your functions.php file
    add_filter( 'rest_prepare_taxonomy', 'wpem_hide_event_type_metabox', 10, 2 );
    function wpem_hide_event_type_metabox( $response, $taxonomy )
    	if ( 'event_listing_type' === $taxonomy->name ) 
    		$response->data['visibility']['show_ui'] = false;
    	return $response;
  3. Save changes
Was this article helpful?
How can we improve this article?
How Can We Improve This Article?
Quick Links