public/wordpress/wp-content/plugins/wp-courseware/includes/functions/cart.php
/**
 * Calculate Tax Amount.
 *
 * @since 4.3.0
 *
 * @param float $amount The original amount to calculate a tax cost.
 *
 * @return float $tax Taxed amount
 */
Calculate Tax Amount.

@param float $amount The original amount to calculate a tax cost.

@return float $tax Taxed amount
Calculate Tax Amount . @param float $amount The original amount to calculate a tax cost . @return float $tax Taxed amount
function wpcw_calculate_tax_amount( $amount = 0 ) {
	$tax     = 0.00;
	$percent = wpcw_get_tax_percentage();
	if ( wpcw_taxes_enabled() && $amount > 0 ) {
		$tax = $amount * ( $percent / 100 );
	}
	return apply_filters( 'wpcw_tax_amount', $tax, $percent );
}
function wpcw_calculate_tax_amount ( $ amount = 0 ) { $ tax = 0.00 ; $ percent = wpcw_get_tax_percentage ( ) ; if ( wpcw_taxes_enabled ( ) && $ amount > 0 ) { $ tax = $ amount * ( $ percent / 100 ) ; } return apply_filters ( 'wpcw_tax_amount' , $ tax , $ percent ) ; }
Calculate Tax Amount.
Calculate Tax Amount .