You appear to be a bot. Output may be restricted
Description
Calculate the total fee amount for a specific fee type
Can be negative
Usage
$float = EDD_Fees::type_total( $type );
Parameters
- $type
- ( string ) optional default: fee – Fee type, "fee" or "item"
Returns
float Total fee amount
Source
File name: easy-digital-downloads/includes/class-edd-fees.php
Lines:
1 to 12 of 12
public function type_total( $type = 'fee' ) { $fees = $this->get_fees( $type ); $total = (float) 0.00; if ( $this->has_fees( $type ) ) { foreach ( $fees as $fee ) { $total += edd_sanitize_amount( $fee['amount'] ); } } return edd_sanitize_amount( $total ); }