Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 6, 2022 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriinalivaiko/a85e6082651c88dc38ba48beb982972f to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/a85e6082651c88dc38ba48beb982972f to your computer and use it in GitHub Desktop.
Hoo: um_email_send_message_content
<?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