Skip to content

Instantly share code, notes, and snippets.

@travislima
Last active August 19, 2021 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save travislima/1da653330b86e995de08 to your computer and use it in GitHub Desktop.
Save travislima/1da653330b86e995de08 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