Action: wu_membership_new_payment_pre_totals
Fires before a membership payment has its totals recalculated.
Addons can add auditable line items to renewal payments without changing the membership's recurring amount or invoking a gateway.
Parameters
| Name | Type | Description |
|---|---|---|
| $new_payment | \WP_Ultimo\Models\Payment | Unsaved payment object. |
| $membership | \Membership | Membership being billed. |
| $remove_non_recurring | bool | Whether non-recurring items were removed. |
| $save | bool | Whether the payment will be saved. |
Since
- 2.15.1
Source
Defined in inc/functions/membership.php at line 340