Skip to content

Instantly share code, notes, and snippets.

@ideadude
Created December 31, 2017 20:13
Show Gist options
  • Save ideadude/4509ae47ed0a94817c0c3b714cd38ff5 to your computer and use it in GitHub Desktop.
Save ideadude/4509ae47ed0a94817c0c3b714cd38ff5 to your computer and use it in GitHub Desktop.
Tell the PMPro Proration Add On that every level change is a "downgrade" or sidegrade.
/*
Tell the PMPro Proration Add On that every level change is a "downgrade" or sidegrade.
This will cause the PMPro checkout to always charge $0 for level changes, while setting up
a subscription to charge the new plan price on the next payment date.
This is useful if you have all recurring membership levels that are basically payment plans vs
differently priced levels.
Add this code to a custom plugin.
*/
add_filter('pmpro_is_downgrade', '__return_true');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment