Filter: um_disable_email_notification_sending

apply_filters( 'um_disable_email_notification_sending', $disabled, $email, $template, $args ) → {bool}

Filters disabling email notifications programmatically.

Parameters:
Name Type Description
$disabled bool

Does an email is disabled programmatically. By default it is false.

$email string

Email address for sending.

$template string

Email template key.

$args array

Arguments for sending email.

Since:
  • 2.6.1
Source:
Returns:

true if email is disabled programmatically.

Type
bool
Example

Disabling email notifications programmatically.

function my_disable_email_notification_sending( $disabled, $email, $template, $args ) {
    // your code here
    return $disabled;
}
add_filter( 'um_disable_email_notification_sending', 'my_disable_email_notification_sending', 10, 4 );