Remove existing field from event submission form

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 from the frontend event submission form

  1. Open up your theme functions.php field.
  2. Create a function to remove the existing fields from the event submission form. First hook in it the following function:
  1. add_filter( 'submit_event_form_fields','frontend_add_facebook_field' );
  1. Write the following function:
  1. function frontend_add_country_field( $fields ) {
  2.     unset( $fields['organizer']['organizer_linkedin'] );
  3.     unset( $fields['organizer']['organizer_facebook'] );
  4.     unset( $fields['organizer']['organizer_xing'] );
  5.     unset( $fields['organizer']['organizer_pinterest'] );
  6.     return $fields;
  7.     }
This will remove existing fields like LinkedIn, Facebook, ding, and Pinterest from the bottom of the frontend Event Submission form.

Removing the fields from the backend event submission form

Again in theme functions.php, hook in your custom function:

  1. add_filter( 'event_manager_event_listing_data_fields', 'admin_add_facebook_field' );

Then write your custom function:

  1. function frontend_add_facebook_field( $fields ) {
  2.     unset( $fields['_organizer_linkedin'] );
  3.     unset( $fields['_organizer_facebook'] );
  4.     unset( $fields['_organizer_xing'] );
  5.     unset( $fields['_organizer_pinterest'] );
  6.     return $fields;
  7.     }

This will remove existing fields like LinkedIn, Facebook, xing, and Pinterest from the bottom of the backend’s event submission form.

Note, the field name is prepended with a ‘_’. This is because the Event Manager makes your new fields hidden meta by prepending them with an underscore. This is normal.


    • Related Articles

    • Editing Event Submission Form Fields

      There are mainly 2 ways to customize the form fields in WP Event Manager : Using the Field editor option from the admin panel. Using the WordPress hooks (filters) which are explained below. Using the field editor option from the admin panel To add, ...
    • Updating WP Event Manager

      Automatic Update WP Event Manager always strives to achieve perfection in every way and that is why we constantly update our plugins so that you can enjoy their innovative features. Here are the steps that you need to take to update WP Event Manager: ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Creating a custom event search form

      WP Event Manager’s [Events] shortcode is coded to pick up search_location and search_keywords variables from the query string. Because of this, it’s easy to create a search form elsewhere on your site which posts to your events page. How to Create a ...