WC_Product::add_to_cart_text()publicWC 1.0

Get the add to cart button text.

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

Hooks from the method

Return

String.

Usage

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

Code of WC_Product::add_to_cart_text() WC 6.8.2

public function add_to_cart_text() {
	return apply_filters( 'woocommerce_product_add_to_cart_text', __( 'Read more', 'woocommerce' ), $this );
}