Embed Snippet on Your Site
MemberPress: Change Email Subject in Bulk
The code snippet replaces email subject on all emails containing a specified phrase in the current email subject. You must add the search terms in lowercase, “set your new password”. It’s better to use it with emails that aren’t located under MemberPress > Settings > Emails like password emails.
The sample code will search for emails with the "your new password" phrase in the email subject, and replace these existing email subject with the "Your New Password on yourdomain.com" one.
The search phrase can be modified by replacing the "your new password" text with the required phrase or term on this line:
if (strpos(strtolower($subject), 'your new password') !== false) {
The new email subject, which will be used to replace the existing subject, can be modified by replacing the “Your New Password on yourdomain.com” text with a required one on this line:
$subject = 'Your New Password on yourdomain.com';
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments