rcp_membership_can_cancel

Filters whether a membership can be cancelled.

Parameters:

  • $can_cancel (bool) - True if the membership can be cancelled, false if not.
  • $membership_id (int) - ID of the membership being checked.
  • $membership (RCP_Membership) - Membership object for the membership being checked.