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

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.
  1. add_filter( 'rest_prepare_taxonomy', 'wpem_hide_event_type_metabox', 10, 2 );
  2. function wpem_hide_event_type_metabox( $response, $taxonomy )
  3. {
  4.     if ( 'event_listing_type' === $taxonomy->name )     
  5. {
  6.         $response->data['visibility']['show_ui'] = false;
  7.     }     
  8.     return $response;
  9. }
      Save changes.
    • Related Articles

    • Installation of WP Event Manager

      Automatic Installation of FREE WP Event Manager Installing WP Event Manager is just a matter of a few clicks. You can add WP Event Manager to your website by using the dashboard offered to you at the backend of the CMS. To install the plugin ...
    • Remove existing field from event submission form

      Removing fields from event the event submission form In this guide, you will learn about how you can remove existing fields from the event submission form and how you can remove some social fields from the organizer section. Remove existing field ...
    • Event Detail Page

      The Event detail page carries various details of a particular event. These details include the event title, event type, event location, event start date & time, event end date & time, event description, etc. besides this, you can also get the details ...
    • Multilingual Website Using WPML

      WordPress Multilingual Plugin is one of the most powerful tools used for translation and it is highly compatible with the WP Event Manager plugin. It makes it easy to transform any ordinary WordPress website into a multilingual site. You can choose ...
    • Changing the event slug/permalink

      In this guide, we will show you how you can change or customize the event slug or permalink. It usually appears like this: http://yoursite.com/events/event-listing-title in the default settings. To customize this with WP Event Manager, you can use ...