Skip to content

Instantly share code, notes, and snippets.

View dwanjuki's full-sized avatar

David Wanjuki dwanjuki

  • Nairobi, Kenya
  • 17:52 (UTC +03:00)
View GitHub Profile
@dparker1005
dparker1005 / my_pmpro_custom_prorate.php
Created January 16, 2020 19:53
Prorate the initial payment of a membership while using PMPro Set Expiration Date.
<?php
// Copy from below here...
/*
* Prorate the initial payment of a membership while using PMPro Set Expiration Date.
*
* For year-long proration cycles, leave as is.
*
* For partial year cycles (such as classes between September and May), change $days_to_prorate to the number
<?php
/* Sample Register Helper fields
Register Helper Add On (https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/)
Add this to your customization plugin for PMPro Customizations: https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
or