You appear to be a bot. Output may be restricted
Description
Retrieves the name of a variable price option
Usage
$string = edd_get_price_option_name( $download_id, $price_id, $payment_id );
Parameters
- $download_id
- ( int ) optional – ID of the download
- $price_id
- ( int ) optional – ID of the price option
- $payment_id
- ( int ) optional – optional payment ID for use in filters
Returns
string $price_name Name 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_name( $download_id = 0, $price_id = 0, $payment_id = 0 ) { $prices = edd_get_variable_prices( $download_id ); $price_name = ''; if ( $prices && is_array( $prices ) ) { if ( isset( $prices[ $price_id ] ) ) $price_name = $prices[ $price_id ]['name']; } return apply_filters( 'edd_get_price_option_name', $price_name, $download_id, $payment_id, $price_id ); }