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

wp_travel_price_per_fields

Filter Hook:

wp_travel_price_per_fields

Description: This filter hook is used to add the option in the field “Price Per”  in price tab of trips.

Example:

Adding the dropdown option to the field “Price Per” in Price tabs.

function wp_travel_customize_field_text( $price_per ){

	$price_per['night'] = __( 'Night', 'wp-travel' );

	return $price_per;

}
add_action( 'wp_travel_price_per_fields', 'wp_travel_customize_field_text', 20 );

How can we help?