um_locate_email_template

Hook type

Filter

Description

Change email notification template path

Parameters

$template

(string) Template Path

$template_name

(string) Template Name

Usage

<?php add_filter( 'um_locate_email_template', 'function_name', 10, 2 ); ?>

Examples

<?php
add_filter( 'um_locate_email_template', 'my_locate_email_template', 10, 2 );
function my_email_template_body_attrs( $template, $template_name ) {
    // your code here
return $template;
}
?>

Change Log

Since: 2.0

Source

um_locate_email_template is located in includes/core/class-mail.php::line 354