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

    • Editing Event Submission Form Fields

      There are mainly 2 ways to customize the form fields in WP Event Manager : Using the Field editor option from the admin panel. Using the WordPress hooks (filters) which are explained below. Using the field editor option from the admin panel To add, ...
    • List of all the default template and fields given in core and Premium Add-ons

      The default templates offered by WP Event Manager are mentioned below. The default fields & default template available in the core plugin are as follows: WP-Event-Manager Account-signin.php Content-event_listing.php Content-no-events-found.php ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Installation of WP Event Manager

      Automatic Installation of FREE WP Event Manager Installing WP Event Manager is just a matter of a few clicks. You can add WP Event Manager to your website by using the dashboard offered to you at the backend of the CMS. To install the plugin ...