Action Hooks Associated With Enquiry

Action: wp_travel_after_enquiry_save #

Fire after enquiry data save. Currently using to initialize zapier automation.

Active Since v2.0.9

Source

File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php

Parameters
$post_id, $enquery_data

Example:

function prefix_wp_travel_after_enquiry_save( $post_id, $enquery_data ) {
    // Code here.
}
add_action( 'wp_travel_after_enquiry_save', 'prefix_wp_travel_after_enquiry_save'  );

Action: wp_travel_after_enquiries_email_sent #

Fire after enquiry email has been sent.

Source

File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php

Parameters
$admin_email, $customer_email, $formdata, $enquiry_id

Example:

function prefix_wp_travel_after_enquiries_email_sent( $admin_email, $customer_email, $formdata, $enquiry_id ) {
    // Code here.
}
add_action( 'wp_travel_after_enquiries_email_sent', 'prefix_wp_travel_after_enquiries_email_sent'  );

Action: wp_travel_utils_enquiries_notif #

Fire in WP Travel admin email settings tab. Fire before enquiry admin email subject.

Source

File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php

Example:

function prefix_wp_travel_utils_enquiries_notif() {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_utils_enquiries_notif', 'prefix_wp_travel_utils_enquiries_notif’ );

Action: wp_travel_enquiry_customer_email_settings #

Fire in WP Travel admin email settings tab. Fire after enquiry admin email template options.

Source

File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php

Example:

function prefix_wp_travel_enquiry_customer_email_settings() {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_enquiry_customer_email_settings', 'prefix_wp_travel_enquiry_customer_email_settings’ );

Action: wp_travel_email_template_settings_after_enquiry #

Fire in WP Travel admin email settings tab. Fire after enquiry email template options.

Active Since v1.8.0

Source

File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php

Parameters
$tab, $args

Example:

function prefix_wp_travel_email_template_settings_after_enquiry( $tab, $args ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_email_template_settings_after_enquiry', 'prefix_wp_travel_email_template_settings_after_enquiry’ );