Editing Event Submission Form Fields

Editing Event Submission Form Fields

There are the ways to customize the fields in WP Event Manager;

  1. From admin side field editor settings.
  2. Use the WordPress hooks (filters) which are explained below.

 

Field editor from admin panel

You can edit,delete or add new fields in admin panel go to Event Listing -> Field Editor.

Editing submission form fields at the frontend side

Altering occasion accommodation fields are conceivable by means of the submit_event_form_fields channel. Including some code will permit you to alter different fields, or include new ones.

See underneath how to change a field’s label:

 

<?php
// Add your own function to filter the fields
add_filter( 'submit_event_form_fields', 'custom_submit_event_form_fields' );


function custom_submit_event_form_fields( $fields ) {

    // Here we target one of the event fields (event_title) and change it's label
    $fields['event']['event_title']['label'] = "Custom Label";

    // And return the modified fields
    return $fields;
}
?>
Editing submission form fields at the admin side

Fields in the administrator are of comparative structure and can be altered utilizing the “event_manager_event_listing_data_fields” channel. Every field takes a marker, placeholder, sort and depiction contentions.

See Below is the example on how to change a field’s label:

<?php
// Add your own function to filter the fields
add_filter( 'event_manager_event_listing_data_fields', 'custom_event_manager_event_listing_data_fields' );


function custom_event_manager_event_listing_data_fields( $fields ) {

    // Here we target one of the event fields (location) and change it's placeholder
    $fields['_event_location']['placeholder'] = "Custom placeholder";

    // And return the modified fields
    return $fields;
}
?>