How can we help?

Search for answers or browse our knowledge base.

Table of Contents

How to change the email templates & text in WP 2FA

The WP 2FA plugin sends emails to notify the users of changes or of what they need to do. It sends the following emails:

  • When the site administrator configures 2FA policies that apply to them
  • To send the one-time login code over email (when using email 2FA)
  • When a WordPress user is locked (because they did not configure 2FA within the grace period)
  • When a site administrator unlocks a WordPress user

Changing the WP 2FA plugin email templates

The text of these emails is generated from a number of templates saved in the plugin. You can change these templates from the Email Settings & Templates tab in the plugin configuration.

email settings & templates

From this page you can:

  • Change the subject of the email,
  • Change the email text,
  • Disable / re-enable specific email templates (using the Send this email setting).

What are the template tags?

Template tags are text-snippets that you can use in an email’s subject and template. These tags are then replaced with a real value when an email is sent to the users. The below is a list of available template tags in WP 2FA:

  • {site_url}
  • {site_name}
  • {grace_period}
  • {user_login_name}
  • {login_code}
  • {2fa_settings_page_url}

Therefore in the below example, the tags will be replaced with actual values when sent to the user. Instead of the tag {site_url} the plugin will insert the URL of the website, instead of the {grace_period} the plugin will insert the configured value, for example 3 days, instead of the {user_login_name} the plugin will insert the first name of the user, for example, Robert.

email body and subject template

Note: the email template editor is a fully blown editor and the emails are in HTML format. Therefore it is very easy to update the template to match your business’ branding.

Customizing the “from” email address and display name

By default our plugin uses your sites admin email address and name. These can be found under the General Settings in your WordPress dashboard. If you wish to customize the “from” email address and display name in the context of WP 2FA, you can do so via the Email settings & templates area found in our plugins settings.

customizing the from email address and display name

Select the setting Use another email address and the relevant fields will be revealed. You can then supply your desired email address and display name.

Uploading WP 2FA as a zip file in WordPress
WP 2FA in the WordPress plugin repository
Close

Installing WP 2FA Free

Congratulations on taking the first step towards enhancing your WordPress site's security with WP 2FA Free! You're now on your way to protecting your valuable data and ensuring peace of mind. No coding or technical knowledge is required.

 

Below are two ways to install WP 2FA on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for WP 2FA.

Download the WP 2FA plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading CAPTCHA 4WP as a zip file in WordPress
CAPTCHA 4WP in the WordPress plugin repository
Close

Installing CAPTCHA 4WP Free

Well done you. You're one step closer to safeguarding your WordPress website from spam and automated attacks with CAPTCHA 4WP. You'll be able to effortlessly integrate CAPTCHA into your forms and enjoy a website with enhanced security.

 

Below are two ways to install CAPTCHA 4WP on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for CAPTCHA 4WP.

Download the CAPTCHA 4WP plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading WP Activity Log as a zip file in WordPress
WP Activity Log in the WordPress plugin repository
Close

Installing WP Activity Log Free on your website

You deserve a pat on the back for choosing to record user actions and changes on your website. That is the first step towards better user accountability, easier troubleshooting of website security, and many other benefits of issues.

 

Below are the two ways to install WP Activity Log on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for WP Activity Log.

Download the WP Activity Log plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading Melapress Login Security as a zip file in WordPress
Melapress Login Security in the WordPress plugin repository
Close

Installing Melapress Login Security Free

Congratulations on taking control of your WordPress website's security by implementing robust login and password policies with Melapress Login Security. You can change your login page URL, limit failed login attempts, and reset passwords.

 

Below are two ways to install Melapress Login Security on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for Melapress Login Security.

Download the Melapress Login Security plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2