Forked from champsupertramp/Ultimate Member - Custom Email Template
Created
December 15, 2016 07:56
-
-
Save kondorwithak/c3e03a8c316cf594a9a0307f36a629d0 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