Created
November 6, 2022 20:00
-
-
Save yuriinalivaiko/a85e6082651c88dc38ba48beb982972f to your computer and use it in GitHub Desktop.
Hoo: um_email_send_message_content
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_email_send_message_content | |
* | |
* Type: filter | |
* | |
* Description: Change email notification body. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-mail.php#L381 | |
* | |
* @package um\core | |
* @see um\core\Mail::prepare_template() | |
* @since 2.0 | |
* @version 3.0 | |
* | |
* @param string $message Email body. | |
* @param string $template Template key. | |
* @param array $args Template settings. | |
* | |
* @return string Email body. | |
*/ | |
function my_email_send_message_content( $message, $template, $args ) { | |
// your code here. | |
return $message; | |
} | |
add_filter( 'um_email_send_message_content', 'my_email_send_message_content', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment