Filters Associated With Enquiry

Filter: wp_travel_trip_enquiry_label #

WP Travel trip enquiry label filter.

Source

File: /inc/helpers.php
Used by: /inc/helpers.php

Parameters
Default is ‘__( ‘Trip Enquiry’, ‘wp-travel’ )’.

Example:

function prefix_wp_travel_trip_enquiry_label() {
    return ‘__( 'CUSTOM LABEL', 'wp-travel' )’;
}
add_filter( 'wp_travel_trip_enquiry_label', 'prefix_wp_travel_trip_enquiry_label' );

WP Travel group size text frontend.

Source

File: /inc/template-functions.php
Used by: /inc/template-functions.php

Parameters
Default is ‘__( ‘Group size’, ‘wp-travel’ )’.

Example:

function prefix_wp_travel_template_group_size_text() {
    return ‘__( 'Total Group size', 'wp-travel' ) ’;
}
add_filter( 'wp_travel_template_group_size_text', 'prefix_wp_travel_template_group_size_text' );

Filter: wp_travel_enquiries_form_fields #

Trip enquiry form field filter.

Source

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

Parameters
$enquiry_fields

Example:

function prefix_wp_travel_enquiries_form_fields( $enquiry_fields ) {
    $enquiry_fields[‘phone_no’] = array(
    'type' => 'number',
    'label' => __( 'Phone Number',
    'wp-travel' ),
    'name' =>
    'wp_travel_enquiry_number',
    'id' =>
    'wp-travel-enquiry-number',
    'placeholder' => __( 'Enter your
    Phone number', 'wp-travel' ),
    'validations' => array(
    'required' => false,
    'maxlength' => '80',
    ),
    'attributes' => array(
    'placeholder' => __( 'Enter
    your Number', 'wp-travel' ),
    ),
    'priority' => 100,
    ),
    return $enquiry_fields;
}
add_filter( 'wp_travel_enquiries_form_fields', 'prefix_wp_travel_enquiries_form_fields' );

Filter: wp_travel_enquiry_submit_button_label #

Trip enquiry submit button label filter.

Source

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

Parameters
Default is ‘__( ‘SUBMIT ENQUIRY’, ‘wp-travel’ )’.

Example:

function prefix_wp_travel_enquiry_submit_button_label() {
    return ‘__( 'SEND ENQUIRY', 'wp-travel' )’;
}
add_filter( 'wp_travel_enquiry_submit_button_label', 'prefix_wp_travel_enquiry_submit_button_label' );

Filter: apply_filters( wp_travel_admin_enquiry_data, $enquery_data ) #

Filter before saving admin enquiry data.

Source

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

Parameters
$enquery_data

Example:

function prefix_wp_travel_admin_enquiry_data( $enquery_data ) {
    // Code here.
    return $enquery_data;
}
add_filter( 'wp_travel_admin_enquiry_data', 'prefix_wp_travel_admin_enquiry_data' );

Filter: wp_travel_frontend_enqueries_validation_check #

Filter for validation check on frontend trip enquiry data.

Source

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

Parameters
$data

Example:

function prefix_wp_travel_frontend_enqueries_validation_check( $data ) {
    $data[‘status’] = false;
    return $data;
}
add_filter( 'wp_travel_frontend_enqueries_validation_check', 'prefix_wp_travel_frontend_enqueries_validation_check' );

Filter: apply_filters( wp_travel_frontend_enquiry_data, $enquiry_data, $formdata ) #

Filter for validation check on frontend trip enquiry data.

Source

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

Parameters
$data

Example:

function prefix_wp_travel_frontend_enqueries_validation_check( $data ) {
    $data[‘status’] = false;
    return $data;
}
add_filter( 'wp_travel_frontend_enqueries_validation_check', 'prefix_wp_travel_frontend_enqueries_validation_check' );