um_before_email_template_body

Hook type

Action

Description

Action before email template body display

Parameters

$slug

(string) Email template slug

$args

(array) Email template arguments

Usage

add_action( 'um_before_email_template_body', 'function_name', 10, 2 );

Examples

<?php
add_action( 'um_before_email_template_body', 'my_before_email_template_body', 10, 2 );
function my_before_email_template_body( $slug, $args ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_before_email_template_body is located in includes/core/class-mail.php::line 263