fbpx
Did you miss our exclusive webinar on Attendee information? Click here to view the recorded session.
How can we help?

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:
         add_filter( 'submit_event_form_fields','frontend_add_facebook_field' );
    
  3. Write the following function:
    function frontend_add_country_field( $fields ) {
        unset( $fields['organizer']['organizer_linkedin'] );
        unset( $fields['organizer']['organizer_facebook'] );
        unset( $fields['organizer']['organizer_xing'] );
        unset( $fields['organizer']['organizer_pinterest'] );
        return $fields;
        }
    

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:

     add_filter( 'event_manager_event_listing_data_fields', 'admin_add_facebook_field' );

Then write your custom function:

function frontend_add_facebook_field( $fields ) {
    unset( $fields['_organizer_linkedin'] );
    unset( $fields['_organizer_facebook'] );
    unset( $fields['_organizer_xing'] );
    unset( $fields['_organizer_pinterest'] );
    return $fields;
    }

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.

Remove Existing Field From Event Submission Form
Ashok Dudhat

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