Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_email_template_type

WP Travel email data like header, content etc.

Active Since v1.8.0

Source

File: /inc/class-email-template.php
Used by: /inc/class-email-template.php

Parameters
$email_data, $type, $sent_to

Example:

function prefix_wp_travel_email_template_type( $email_data, $type, $sent_to ) {
    $email_data[‘header_details’][‘header_title’] = ‘Title here’;
    return $email_data;
}
add_filter( 'wp_travel_email_template_type', 'prefix_wp_travel_email_template_type', 12, 3 );
Was this article helpful to you? Yes No

How can we help?