Last active
December 16, 2023 21:59
-
-
Save champsupertramp/0bded4f6ed4c3c9c6af7 to your computer and use it in GitHub Desktop.
Ultimate Member - Custom Email Template
This file contains hidden or 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 | |
/*** | |
*** Custom Email Template | |
****/ | |
function um_custom_email_template(){ | |
global $ultimatemember, $user_ID; | |
um_fetch_user( $user_ID ); | |
$tags = array( | |
'tags' => array('{value}'), | |
'tags_replace' => array( $my_value ) | |
); | |
UM_Mail( um_user('user_email'), 'Title Mail', 'Email template', 'templates/email/', $tags); | |
// Remove HTML content type | |
remove_filter( 'wp_mail_content_type', 'um_mail_content_type' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment