Skip to content

Instantly share code, notes, and snippets.

@champsupertramp
Last active December 16, 2023 21:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save champsupertramp/0bded4f6ed4c3c9c6af7 to your computer and use it in GitHub Desktop.
Save champsupertramp/0bded4f6ed4c3c9c6af7 to your computer and use it in GitHub Desktop.
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