get_product_url(), $this ); } /** * Get the add to cart button text for the single page. * * @access public * @return string */ public function single_add_to_cart_text() { return apply_filters( 'woocommerce_product_single_add_to_cart_text', $this->get_button_text(), $this ); } /** * Get the add to cart button text. * * @access public * @return string */ public function add_to_cart_text() { return apply_filters( 'woocommerce_product_single_add_to_cart_text', $this->get_button_text(), $this ); } /** * Get product url. * * @access public * @return string */ public function get_product_url() { return esc_url( $this->product_url ); } /** * Get button text. * * @access public * @return string */ public function get_button_text() { return $this->button_text ? $this->button_text : __( 'Buy product', 'woocommerce' ); } }