WC_Product_External::single_add_to_cart_text()publicWC 1.0

Get the add to cart button text for the single page.

Method of the class: WC_Product_External{}

Return

String.

Usage

$WC_Product_External = new WC_Product_External();
$WC_Product_External->single_add_to_cart_text();

WC_Product_External::single_add_to_cart_text() code WC 8.7.0

public function single_add_to_cart_text() {
	return apply_filters( 'woocommerce_product_single_add_to_cart_text', $this->get_button_text() ? $this->get_button_text() : _x( 'Buy product', 'placeholder', 'woocommerce' ), $this );
}