apply_filters( 'um_email_notifications', $email_notifications ) → {array}
Filters the list of Ultimate Member email notifications.
Parameters:
Name | Type | Description |
---|---|---|
$email_notifications |
array | Email notifications. |
- Since:
- 2.0.0
- Source:
Returns:
Email notifications.
- Type
- array
Example
function my_um_email_notifications( $notifications ) {
// 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;
}
add_filter( 'um_email_notifications', 'my_um_email_notifications' );