You appear to be a bot. Output may be restricted
Description
Determine if single price mode is enabled or disabled
Usage
$bool = EDD_Download::is_single_price_mode();
Parameters
Returns
bool True if download is in single price mode, false otherwise
Source
File name: easy-digital-downloads/includes/class-edd-download.php
Lines:
1 to 15 of 15
public function is_single_price_mode() { $ret = $this->has_variable_prices() && get_post_meta( $this->ID, '_edd_price_options_mode', true ); /** * Override the price mode for a download when checking if is in single price mode. * * @since 2.3 * * @param bool $ret Is download in single price mode? * @param int|string The ID of the download. */ return (bool) apply_filters( 'edd_single_price_option_mode', $ret, $this->ID ); }