public function is_single_price_mode()
{
$option = get_post_meta($this->ID, '_give_price_options_mode', true);
$ret = 0;
if (empty($option) || $option === 'set') {
$ret = 1;
}
/**
* Override the price mode for a donation when checking if is in single price mode.
*
* @since 1.0
*
* @param bool $ret Is donation form in single price mode?
* @param int|string The ID of the donation form.
*/
return (bool) apply_filters('give_single_price_option_mode', $ret, $this->ID);
}