Customize Default WordPress Emails
Customize the content of built-in WordPress notification emails including password resets, new user registrations, and comment notifications. Use merge tags to personalize each email with dynamic content.
Use Cases
- Brand system emails with your company voice and style
- Translate WordPress emails to your site’s language
- Add helpful instructions to password reset emails
- Customize new user welcome messages
- Personalize comment notification content
How It Works
- Enable the module in Switchboard
- Open the settings panel
- Click tabs to edit different email types
- Use merge tags for dynamic content
- Leave fields blank to use WordPress defaults
Email Types You Can Customize
| Sent To | Triggered By | |
|---|---|---|
| New User (Admin) | Site admin | New user registration |
| New User (User) | New user | After they register |
| Password Reset | User | “Lost your password?” request |
| Password Changed | User | After password is changed |
| Email Changed | User | After email address is changed |
| Comment Notification | Post author | New approved comment |
| Comment Moderation | Admin | Comment held for moderation |
Using Merge Tags
Merge tags are placeholders that get replaced with actual values when the email is sent. Wrap them in double curly braces: {{tag_name}}
Common Merge Tags
| Tag | Description |
|---|---|
{{username}} | User’s login name |
{{site_name}} | Your website name |
{{site_url}} | Your website URL |
{{login_url}} | WordPress login page URL |
{{admin_email}} | Site admin email address |
Email-Specific Tags
Password Reset Email
| Tag | Description |
|---|---|
{{reset_url}} | Password reset link |
{{user_email}} | User’s email address |
New User Email
| Tag | Description |
|---|---|
{{password_reset_url}} | Link to set initial password |
Email Changed Email
| Tag | Description |
|---|---|
{{old_email}} | Previous email address |
{{new_email}} | New email address |
Comment Emails
| Tag | Description |
|---|---|
{{comment_author}} | Commenter’s name |
{{comment_author_email}} | Commenter’s email |
{{comment_content}} | The comment text |
{{post_title}} | Title of the post |
{{post_url}} | Link to the post |
{{comment_url}} | Direct link to comment |
{{approve_url}} | Link to approve (moderation only) |
{{spam_url}} | Link to mark as spam |
{{trash_url}} | Link to trash comment |
Example Customizations
Password Reset Email
Subject:
Reset your {{site_name}} passwordMessage:
Hi {{username}},
Someone requested a password reset for your account at {{site_name}}.
Click here to reset your password:
{{reset_url}}
If you didn't request this, you can safely ignore this email. Your password will remain unchanged.
Thanks,
The {{site_name}} TeamNew User Welcome Email
Subject:
Welcome to {{site_name}}!Message:
Hi {{username}},
Welcome to {{site_name}}! We're excited to have you.
To get started, set your password by visiting:
{{password_reset_url}}
Once you've set your password, you can log in at:
{{login_url}}
If you have any questions, just reply to this email.
Best regards,
The {{site_name}} TeamComment Notification
Subject:
New comment on "{{post_title}}"Message:
Hi there,
{{comment_author}} left a comment on your post "{{post_title}}":
"{{comment_content}}"
View and reply: {{comment_url}}
Cheers,
{{site_name}}Interface Guide
Tab Navigation
Click the tabs at the top to switch between email types. A green dot indicates which emails have been customized.
Merge Tag Insertion
Click any merge tag button to insert it at your cursor position in the message field.
Reset to Default
Each email type has a “Clear & Reset to Default” button. Clicking it removes your customizations and WordPress will use its default email content.
Best Practices
Keep It Clear
- Use simple, direct language
- Include all necessary links prominently
- Don’t over-brand or add too much marketing content
Test Your Changes
- Trigger each email type to verify it works
- Check that merge tags are replaced correctly
- View emails on different email clients
Security Emails
For password reset and security-related emails:
- Don’t remove the action link
- Include context about why they’re receiving it
- Mention what to do if they didn’t request it
Compatibility
What This Module Customizes
- The email subject line
- The email body content
- Merge tag replacement
What This Module Doesn’t Change
- Email from address (use Email SMTP module)
- Email HTML formatting (emails remain plain text)
- Plugin-generated emails (WooCommerce, etc.)
For HTML email formatting and “From” address changes, combine this module with the Email SMTP module.
FAQ
My custom email isn’t sending. What’s wrong?
- Ensure the module is enabled
- Check that your settings are saved
- Verify your site can send emails (test with Email SMTP module)
- Check for PHP errors in your server logs
Can I use HTML in the emails?
The email content is sent as plain text. HTML tags may appear as literal text rather than formatting. For HTML emails, you would need additional customization beyond this module.Does this affect WooCommerce emails?
No. WooCommerce has its own email system. This module only affects core WordPress notification emails.What happens if I use an invalid merge tag?
Invalid merge tags (like{{fake_tag}}) will appear literally in the sent email. Always use the provided merge tags for each email type.Get access to all 147 modules with a single license