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