Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Created October 12, 2017 09: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 andrewlimaza/037841b8f97b9788c6717f4b26ff625f to your computer and use it in GitHub Desktop.
Save andrewlimaza/037841b8f97b9788c6717f4b26ff625f to your computer and use it in GitHub Desktop.
Change when the expiration email is sent out for PMPro
<?php
/**
* Change when the expiration email get's sent out to users.
* Filter - https://www.paidmembershipspro.com/hook/pmpro_email_days_before_expiration/
*/
function my_pmpro_email_expiration_date_change( $days ) {
return 3; //change this value to the number of days before the expiration date.
}
add_filter( 'pmpro_email_days_before_expiration', 'my_pmpro_email_expiration_date_change;' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment