You appear to be a bot. Output may be restricted
Description
Calculate the total fee amount
Can be negative
Usage
$float = EDD_Fees::total( $download_id );
Parameters
- $download_id
- ( int ) optional – The download ID whose fees to retrieve
Returns
float Total fee amount
Source
File name: easy-digital-downloads/includes/class-edd-fees.php
Lines:
1 to 12 of 12
public function total( $download_id = 0 ) { $fees = $this->get_fees( 'all', $download_id ); $total = (float) 0.00; if ( $this->has_fees( 'all' ) ) { foreach ( $fees as $fee ) { $total += edd_sanitize_amount( $fee['amount'] ); } } return edd_sanitize_amount( $total ); }