public function is_custom_price_mode()
{
$option = get_post_meta($this->ID, '_give_custom_amount', true);
$ret = 0;
if ($option === 'yes') {
$ret = 1;
}
/**
* Override the price mode for a donation when checking if is in custom price mode.
*
* @since 1.6
*
* @param bool $ret Is donation form in custom price mode?
* @param int|string The ID of the donation form.
*/
return (bool) apply_filters('give_custom_price_option_mode', $ret, $this->ID);
}