Mongoose User Activations replaces the default new user email with it’s own message that includes the link required to activate the account. You can replace this email with your own custom template.
- In your theme create a folder called
- Inside that folder, create another folder called
- In the
emailsfolder, create a file called
new-user.php. This is your email template.
- Paste the following line of code in your theme’s
add_filter( 'mongoose_user_activations_use_email_template', '__return_true' );
This is needed as by default it will send a plain text email, and this will make it use HTML.
In your template you will have access to an
$args variable. This is an array with with
$args['message'] containing the message text (can be filtered with mongoose_user_activations_new_user_email_message), and
$args['user'] which has the user object.