Learnpress Email Template Customisation Plugin


Customizing the LearnPress email template is possible through the use of the email template location filter hook.

Learnpress Email Template
Learnpress Email Template

First, we need to enable notifications from wp-admin > LearnPress > Settings > emails page.

LearnPress email notifications
LearnPress Email Notifications

Configure SMTP Sandbox Account

The next step, Deactivate all SMTP plugins. Then, configure an SMTP sandbox account like MailMug.net. It will help to debug email HTML code output from their admin panel. Login to mailmug.net and copy credentials from settings. Then create mailmug.php file in the wp-admin/plugins folder and paste the credentials to the mailmug.php file.

Install LearnPress Email Plugin

Download the LearnPress-email plugin zip file. Then upload leanpress-email.zip file to wp-admin > plugins > add new > upload zip.

GitHub URL: https://github.com/arshidkv12/learnpress-email-template

Customize LearnPress Email Templates

The LearnPress plugin is using learn_press_get_template filter hook. Go to wp-content/plugins/learnpress-email folder.

Then, we can see the email-header.php file and email-footer.php file. You can modify these files for email templates. After that, You can make a dummy order from your course front page. Finally, you can verify email from the SMTP sandbox admin panel or production email server.

Different Types Of Emails From LearnPress

The LearnPress has four types of users. The types of users are admin, instructor, user, and gust. So, it has four types of emails. You can modify these four email content from wp-admin. Go to wp-admin > LearnPress > Settings > emails. Then, select any one of the emails and edit it.

LearnPress Email For Production

Deactivate the SMTP sandbox account (mailmug) plugin. Then, install the SMTP production plugin like the SMTP7 plugin. After that, add SMTP production credentials. Read more…