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.
Automatic Installation: You can install the plugin from the backend of your WordPress. Click Here to see how you can install the plugin automatically.
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.
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:
Go to WP-admin >> Events Manager.
Click on Contact Organizer Form from the dropdown menu.
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:
- <?php
- add_filter('contact_organizer_form_fields', 'add_custom_field_to_cgf');
- function add_custom_field_to_cgf($fields) {
- // Update existing fields
- $fields['contact_person_name']['label'] = __('Name label changed', 'wp-event-manager-contact-organizer');
- // Add new field
- $fields['contact_custom_name'] = array(
- 'label' => __('Custom Name', 'wp-event-manager-contact-organizer'),
- 'default' => '',
- 'type' => 'text',
- 'required' => true,
- 'placeholder' => __('Please enter custom name', 'wp-event-manager-contact-organizer'),
- 'priority' => 1
- );
- return $fields;
- }
- ?>
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:
Create a directory named wp-event-manager-contact-organizer under your theme folder.
Copy the template file to the following directory:
/wp-content/yourtheme/wp-event-manager-contact-organizer/
Your theme will use all the template files from the following directory instead of the plugin's template files:
/wp-content/yourtheme/wp-event-manager-contact-organizer/
The original plugin templates are located in:
/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.