Filter: um_email_template_body_attrs

apply_filters( 'um_email_template_body_attrs', $body_attrs, $slug, $args ) → {string}

Filters email notification template body additional attributes.

Parameters:
Name Type Description
$body_attrs string

Email notification body attributes.

$slug string

Email template slug.

$args array

Email template settings.

Since:
  • 2.0
Source:
Returns:

Email notification body attributes.

Type
string
Example

Change email notification template body additional attributes.

function my_email_template_body_attrs( $body_attrs, $slug, $args ) {
    // your code here
    return $body_attrs;
}
add_filter( 'um_email_template_body_attrs', 'my_email_template_body_attrs', 10, 3 );