How can we help?

Editing Event Submission Form Fields

There are 2 ways to customize the form 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.

  1. Go to Event Manager >> Field Editor.
  2. wp event manager event submission form field

  3. Add fields and customize them.
  4. Save changes.

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:

[code lang=”php”]
<?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;
}
?>[/code]

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:

[code lang=”php”]
<?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;
}
?>[/code]

Editing Event Submission Form Fields
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.

Was this article helpful?
3 out Of 5 Stars
5 Stars 50%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 50%
How can we improve this article?
How Can We Improve This Article?
Quick Links
Close
Close