Filter: um_email_get_template_file_path

apply_filters( 'um_email_get_template_file_path', $template_path, $location, $template_name_file ) → {string}

Filters expected path for email template in theme or plugin.

Parameters:
Name Type Description
$template_path string

Expected template path.

$location string

Where to search 'theme||plugin'.

$template_name_file string

Expected filename.

Since:
  • 2.6.1
Source:
Returns:

Email template path.

Type
string
Example

Change expected path for email template in theme or plugin.

function my_email_get_template_file_path( $template_path, $location, $template_name_file ) {
    // your code here
    return $template_path;
}
add_filter( 'um_email_get_template_file_path', 'my_email_get_template_file_path' );