public function add_to_cart_text() { return apply_filters('woocommerce_product_add_to_cart_text', $this->is_purchasable() ? __('Select options', 'woocommerce') : __('Read more', 'woocommerce'), $this); }
/** * Get the add to cart button text for the single page * * @access public * @return string */ public function single_add_to_cart_text() { if ($this->is_purchasable() && $this->is_in_stock()) { $text = get_option(WC_Subscriptions_Admin::$option_prefix . '_add_to_cart_button_text', __('Sign Up Now', 'woocommerce-subscriptions')); } else { $text = parent::add_to_cart_text(); // translated "Read More" } return apply_filters('woocommerce_product_single_add_to_cart_text', $text, $this); }