Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ultimate Member - Custom Email Template
<?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