Editing The Registration Form Fields

Editing The Registration Form Fields

In WP Event Manager, you can easily edit the Registration form value along with other form field details using the Filter event_registration_form_fields.

The Filter allows you to change the field label, value and other attributes. In the following example, you can see the food attribute fields and how you can change the value of it.

Follow the below mentioned steps to Edit the Registration form fields:

  1. Open your Child theme.
  2. Apply the filter as shown in the code inside your themes function.php file.
  1. /**
  2.  * override registrations form fields
  3.  * @parma $fields
  4.  * @return $fields
  5.  **/
  6. function custom_function($fields)
  7. {
  8.  //customize $fields
  9.   $fields['food']['value'] = 'vegetables';
  10. return $fields;
  11. } 
  12. add_filter( 'event_registration_form_fields','custom_function',10,1);
Note: The form name and form email are both default values of the current logged in user and you can not make changes to this field value.

    • Related Articles

    • How To Install WP Event Manager Add ons

      WP Event Manager offers a huge number of addons that help you strengthen your WordPress site with some amazing and very useful event management features and functionalities. While installing a premium addon, you need to ensure that you already have ...
    • Attendee limit on registration addon

      The tutorial guides you on how you can limit the number of registrations in the Registration addon. Here are the steps you need to take: 1. There are two ways in which you can do this: Firstly, you can add a new field called “Registration Limit” from ...
    • Event Fields

      Event Submission Form Custom Fields Settings The field editor sub-menu under Event Listings (WP Admin>> Event Manager >> Field Editor) offers flexibility to edit field labels including Type of data, description, placeholder and more. The settings ...
    • Field restriction on the registration form without sell ticket and attendee information

      Registration is one such feature that enables the users/organizer to collect all the information of the attendee on the website itself, thus Field restriction is important to collect proper data. The information that is required by the organizer from ...
    • Event Tag snippets

      The Event Tags in WP Event Manager are designed to simplify the process of searching events. It allows users to search for events quickly with targeted keywords. Event Tags can be customized with the help of below mentioned Event Tag snippet. Here ...