Duplicate Snippet
Embed Snippet on Your Site
MemberPress: Filter Email Recipients Based on Expired Memberships
The code snippet updates the email recipient lists by removing email addresses of users whose membership subscriptions expired. This will be applied to all emails that contain a specified phrase or term in the email subject.
The sample code will be applied to the emails containing the Subscription renewal phrase in the email subject.
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments