um_email_notifications

Hook type

Filter

Description

Extend UM email notifications

Parameters

$emails

(array) UM email notifications

Usage

<?php add_filter( 'um_email_notifications', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_email_notifications', 'my_email_notifications', 10, 1 );
function my_email_notifications( $emails ) {
    // your code here
$emails['my_email'] = array(
'key'           => 'my_email',
'title'         => __( 'my_email_title','ultimate-member' ),
'subject'       => 'my_email_subject',
'body'          => 'my_email_body',
'description'   => 'my_email_description',
'recipient'     => 'user', // set 'admin' for make administrator as recipient
'default_active' => true // can be false for make disabled by default
);

return $emails;
}
?>

Change Log

Since: 2.0

Source

um_email_notifications is located in includes/class-config.php::line 233