• Resolved jimk1416

    (@jimk1416)


    Looking for a way to remove the country field from both the back end and front end event submission forms.
    I’ve only found one post that works but it requires a plugin file to be modified which gets overwritten whenever the plugin is updated. Is there a function that can be used for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jathinhelp

    (@jathinhelp)

    Hello,
    @jimk1416 Please add the below code in your theme functions.php file.

    add_filter(‘submit_event_form_fields’, ‘remove_event_country_fields’);

    function remove_event_country_fields($fields) {
        // Remove the ‘event_country’ field
        unset($fields[‘event’][‘event_country’]);

        return $fields;
    }


    Regards,
    WP Event Manager.

    Thread Starter jimk1416

    (@jimk1416)

    Hey @jathinhelp

    I added that function but I’m still seeing the field in the event fields setting page and the Post an event page.

    Plugin Support jathinhelp

    (@jathinhelp)

    Hello,
    Please open a ticket in our support console. So that we can assist you further.


    Regards,
    WP Event Manager.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove Country Fields’ is closed to new replies.