You appear to be a bot. Output may be restricted
Description
Decrease the payment's subtotal
Usage
$void = EDD_Payment::decrease_subtotal( $amount );
Parameters
- $amount
- ( float ) optional – The amount to decrease the payment subtotal by
Returns
void
Source
File name: easy-digital-downloads/includes/payments/class-edd-payment.php
Lines:
1 to 10 of 10
private function decrease_subtotal( $amount = 0.00 ) { $amount = (float) $amount; $this->subtotal -= $amount; if ( $this->subtotal < 0 ) { $this->subtotal = 0; } $this->recalculate_total(); }