Created
November 6, 2022 19:35
-
-
Save yuriinalivaiko/beb9abcb515408c369429a8f08a20e5a to your computer and use it in GitHub Desktop.
Hook um_before_email_notification_sending
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hook: um_before_email_notification_sending | |
* | |
* Type: action | |
* | |
* Description: Fires before sending an email notification. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-mail.php#L408 | |
* | |
* @package um\core | |
* @see um\core\Mail::send() | |
* @since 2.0 | |
* @version 3.0 | |
* | |
* @param string $email Comma-separated list of email addresses to send message. | |
* @param string $template Template key. | |
* @param array $args Template settings. | |
*/ | |
function my_before_email_notification_sending( $email, $template, $args ) { | |
// your code here. | |
} | |
add_action( 'um_before_email_notification_sending', 'my_before_email_notification_sending', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment