1. Home
  2. Documentations
  3. Developer Documentation
  4. Filters
  5. wp_travel_booking_form_fields

wp_travel_booking_form_fields

Filter Hook:

wp_travel_booking_form_fields

Description: This filter hook is used to modify the text of the filed of Booking Form.

Example:

Modifying the string “Pax” to “Group Size” in Booking Form.

add_filter( 'wp_travel_booking_form_fields', 'wp_travel_customize' );

function wp_travel_customize( $fields ) {
	
	$fields['pax']['label'] = __( 'Group Size', 'wp-travel' );
	return $fields;
}

How can we help?