You appear to be a bot. Output may be restricted
Description
Retrieves the amount of a variable price option
Usage
$float = edd_get_price_option_amount( $download_id, $price_id );
Parameters
- $download_id
- ( int ) optional – ID of the download
- $price_id
- ( int ) optional – ID of the price option
Returns
float $amount Amount of the price option
Source
File name: easy-digital-downloads/includes/download-functions.php
Lines:
1 to 11 of 11
function edd_get_price_option_amount( $download_id = 0, $price_id = 0 ) { $prices = edd_get_variable_prices( $download_id ); $amount = 0.00; if ( $prices && is_array( $prices ) ) { if ( isset( $prices[ $price_id ] ) ) $amount = $prices[ $price_id ]['amount']; } return apply_filters( 'edd_get_price_option_amount', edd_sanitize_amount( $amount ), $download_id, $price_id ); }