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); }