WC_Product_Variable::add_to_cart_text()publicWC 1.0

Get the add to cart button text.

Method of the class: WC_Product_Variable{}

Hooks from the method

Return

String.

Usage

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

WC_Product_Variable::add_to_cart_text() code WC 8.7.0

public function add_to_cart_text() {
	return apply_filters( 'woocommerce_product_add_to_cart_text', $this->is_purchasable() ? __( 'Select options', 'woocommerce' ) : __( 'Read more', 'woocommerce' ), $this );
}