Changing the priority of field for event submission form

Changing the priority country field for events

This tutorial shows how to edit fields based on the Editing Event Submission Form Fields doc and then output it on a single event listing.

 

Changing the field’s priority of the frontend’s event submission form

Open up your theme functions.php field and create a function to append a new field to the events section. First hook it in:

Then write the function:

This change a event field priority of the frontend events form that has the label “Country”, is required, priority has 2.

Changing the field’s priority of the the backend’s event submission form

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

Then write your custom function:

This change a event field priority of the backend events form that has the label “Country”, is required, priority has 2.

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