Contact Organizer

Contact Organizer

The Contact Organizer plugin works as a bridge between the event organizers and attendees. Users can create a Contact Organizer form with the plugin through which attendees can directly get in touch with the organizer.

Installing the Plugin                                                                            

The installation process is the same for all the addons offered by WP Event Manager. They can be installed both automatically and manually.

  1. Automatic Installation: You can install the plugin from the backend of your WordPress. Click Here to see how you can install the plugin automatically.

  2. Manual Installation: You can also install the plugin manually using SFTP or FTP tools. Click Here to see how you can install the plugin manually.

Watch this video for more clarification.

The Contact Organizer Form                                                             

After installing and activating the plugin, you will see a Contact Organizer button on the right side of the event detail page.

Click on the Contact Organizer button to open the Contact Organizer form.

Customization: Managing the Contact Organizer Button & Contact Form Place

The Contact Organizer form is hooked into the event page after the event meta place as shown below.

To remove and move it to a different place, you can customize the hook.

In general, you can use your choice of the custom hook to add the form to a different place.

Backup Note: Keep a backup of the customization code for future reference. Due to the latest changes in the Contact Organizer add-on, the previously provided code is currently not working as expected. Therefore, the code has been removed from this KB page for now. It can be reviewed and added back once it is updated and confirmed to be working.

Customization: Add or Edit Contact Organizer Form Fields         

You can customize fields in the Contact Organizer form by adding the following filters.

Contact Organizer Setting                                                                 

To access the Contact Organizer setting, follow these steps:

  1. Go to WP-admin >> Events Manager.

  2. Click on Contact Organizer Form from the dropdown menu.

  3. You will be taken to a page where you can see four tabs:

    • Contact Organizer

    • Form Fields

    • Contact Organizer Notification

    • Contact Person Notification

Contact Organizer

By clicking on the Contact Organizer tab, you will get the following options:

  • Contact organizer email notification: If you enable this option, an email notification will be sent to the organizer. You can keep it blank to disable it.

  • Contact person email notification: If you enable this option, an email notification will be sent to the contact person. You can keep it blank to disable it.

Form Fields

Here, you need to add the following details:

  • Field label

  • Type

  • Description

  • Placeholder/options

  • Validation

Here you can see another option named Add Field that you can use to add new custom fields as per your requirement.

Contact Organizer Notification

Here, you need to add the email subject and content that will be sent to the event organizer when someone tries to contact them through the Contact Organizer form.

Contact Person Notification

Here, you need to add the email subject and content that will be sent to the contact person who tries to contact the event organizer through the Contact Organizer form.

Customization: Add or Edit Contact Organizer Form Fields              

You can customize fields in the Contact Organizer form by adding the following filter:

  1. <?php

  2. add_filter('contact_organizer_form_fields', 'add_custom_field_to_cgf');

  3. function add_custom_field_to_cgf($fields) {

  4.     // Update existing fields
  5.     $fields['contact_person_name']['label'] = __('Name label changed', 'wp-event-manager-contact-organizer');

  6.     // Add new field
  7.     $fields['contact_custom_name'] = array(
  8.         'label'       => __('Custom Name', 'wp-event-manager-contact-organizer'),
  9.         'default'     => '',
  10.         'type'        => 'text',
  11.         'required'    => true,
  12.         'placeholder' => __('Please enter custom name', 'wp-event-manager-contact-organizer'),
  13.         'priority'    => 1
  14.     );

  15.     return $fields;
  16. }
  17. ?>

Customization: Overriding/Customizing the Template Files        

For overriding or customization, the template files can be found in the:

wp-event-manager-contact-organizer/templates/directory.

To override a template file, follow the steps below:

  1. Create a directory named wp-event-manager-contact-organizer under your theme folder.

  2. Copy the template file to the following directory:

  3. /wp-content/yourtheme/wp-event-manager-contact-organizer/

  4. Your theme will use all the template files from the following directory instead of the plugin's template files:

  5. /wp-content/yourtheme/wp-event-manager-contact-organizer/

  6. The original plugin templates are located in:

  7. /wp-content/plugins/wp-event-manager-contact-organizer/

The following template files are available:

  • contact-organizer.php – Generates the contact form.

  • content-contact-organizer-email.php – Sends mail to the organizer.

Remember: If you have overridden a template file and the plugin is frequently updated, you need to sync the template file with the new version from the plugin's template file for better functionality and new features.