Skip to content

Instantly share code, notes, and snippets.

@femiyb
Forked from travislima/pmpro-customizations.php
Created August 19, 2021 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save femiyb/0de70c42296c6e621cbb3dbac35e2eb4 to your computer and use it in GitHub Desktop.
Save femiyb/0de70c42296c6e621cbb3dbac35e2eb4 to your computer and use it in GitHub Desktop.
PMPro-extra-expiration-warning-emails (Change day email is sent out)
<?php
/*
Plugin Name: PMPro Customizations
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Customizations for Paid Memberships Pro
Version: .1
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
*/
function ts0325_fix_frequency($templates) {
//Code below will send out an email warning at 21 days.
return array( 21 => 'membership_expiring');
}
add_filter('pmproeewe_email_frequency_and_templates', 'ts0325_fix_frequency');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment