Documentation

Documentation > Mongoose User Activations > Guides > Creating Your Own Email Templates

Creating Your Own Email Templates

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.

  1. In your theme create a folder called mongoose-user-activations.
  2. Inside that folder, create another folder called emails.
  3. In the emails folder, create a file called new-user.php. This is your email template.
  4. Paste the following line of code in your theme’s functions.php file:
    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.

Part of the Mongoose Digital family of brands.