um_email_template_path

Hook type

Filter

Description

Change email template location

Parameters

$located

(string) Template Location

$slug

(string) Template Key

$args

(array) Template settings

Usage

<?php add_filter( 'um_email_template_path', 'function_name', 10, 3 ); ?>

Examples

<?php
add_filter( 'um_email_template_path', 'my_email_send_subject', 10, 3 );
function my_email_send_subject( $located, $slug, $args ) {
    // your code here
return $located;
}
?>

Change Log

Since: 2.0

Source

um_email_template_path is located in includes/core/class-mail.php::line 147