Give_Donate_Form::get_type PHP Method

get_type() public method

Retrieve the donation form type, set or multi-level
Since: 1.5
public get_type ( ) : string
return string Type of donation form, either 'set' or 'multi'.
    public function get_type()
    {
        if (!isset($this->type)) {
            $this->type = get_post_meta($this->ID, '_give_price_option', true);
            if (empty($this->type)) {
                $this->type = 'set';
            }
        }
        return apply_filters('give_get_form_type', $this->type, $this->ID);
    }