Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Email
  5. Filter :wp_travel_admin_booking_email_tags

Filter :wp_travel_admin_booking_email_tags

Admin Email tags in array.

Source

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

Parameters
$email_tags, $booking_id

Example:

function prefix_wp_travel_admin_booking_email_tags( $email_tags, $booking_id ) {
    $email_tags[‘{custom_email_tag}’] = ‘value’;
    return $email_tags;
}
add_filter( 'wp_travel_admin_booking_email_tags', 'prefix_wp_travel_admin_booking_email_tags', 12, 2 );
Was this article helpful to you? Yes No

How can we help?