is_custom_price_mode() public method

Determine if custom price mode is enabled or disabled
Since: 1.6
public is_custom_price_mode ( ) : boolean
return boolean
Beispiel #1
0
/**
 * Determine if custom price mode is enabled or disabled
 * This function is wrapper function to Give_Donate_Form::is_custom_price_mode()
 *
 * @since 1.6
 * 
 * @param int $form_id Form ID.
 *
 * @use Give_Donate_Form::is_custom_price_mode()
 * 
 * @return bool
 */
function give_is_custom_price_mode($form_id = 0)
{
    if (empty($form_id)) {
        return false;
    }
    $form = new Give_Donate_Form($form_id);
    return $form->is_custom_price_mode();
}