fbpx
Participate in our upcoming live webinar to learn how to use the Expo Networking addon to create engaging virtual events on 25th September at 10 pm IST. Register 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