fbpx
Be a part of our upcoming webinar on the   Attendee Information Addon   on the 24th April at 10:00 PM IST. Register Now! and Get EXCITING OFFER.
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