WC_Product::single_add_to_cart_text()
Get the add to cart button text for the single page.
Method of the class: WC_Product{}
Hooks from the method
Return
String
.
Usage
$WC_Product = new WC_Product(); $WC_Product->single_add_to_cart_text();
WC_Product::single_add_to_cart_text() WC Product::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', __( 'Add to cart', 'woocommerce' ), $this ); }