/** * Checks the product type. * * Backwards compat with downloadable/virtual. * * @access public * @param mixed $type Array or string of types * @return bool */ public function is_type($type) { return 'resume_package_subscription' == $type || is_array($type) && in_array('resume_package_subscription', $type) ? true : parent::is_type($type); }
/** * Get the add to cart button text * @return string */ public function add_to_cart_text() { $text = $this->is_purchasable() && $this->is_in_stock() ? __('Assinar', VINDI_IDENTIFIER) : parent::add_to_cart_text(); return apply_filters('woocommerce_product_add_to_cart_text', $text, $this); }