WordPress at Your Fingertips
function is not described

WC_Product::single_add_to_cart_text() public WC 1.0

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

{} It's a method of the class: WC_Product{}

Return

String.

Usage

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

Code of WC_Product::single_add_to_cart_text() WC 5.5.2

<?php
public function single_add_to_cart_text() {
	return apply_filters( 'woocommerce_product_single_add_to_cart_text', __( 'Add to cart', 'woocommerce' ), $this );
}