rcp_calculate_membership_level_expiration

Filters the calculated expiration date for a membership level. This is used for initial signups/upgrades only -- not renewals.

Parameters:

  • $expiration_date (string) - Calculated date in MySQL format, or `none` if no expiration.
  • $membership_level (object) - Membership level object from the database.
  • $set_trial (bool) - Whether or not a free trial is being calculated.