Summer Savings Are ON! Use Coupon Code CoolDeals25 for 15% OFF all event tools - plan smarter, save bigger! shop Now
How can we help?

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

In order to remove a duplicate event type meta box while using Gutenberg editor, you need to follow the below mentioned steps:

  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.
How To Remove Duplicate Event Type Meta Box While Using Gutenberg Editor
Editorial Team

Our team constantly explores ways that technology can help us reinvent industries. We want to change the world by creating great products that transform industries. We Dream It, We Make It.

Quick Links
Close
Close