WC_Product_External::add_to_cart_text()
Get the add to cart button text.
Method of the class: WC_Product_External{}
Hooks from the method
Return
String
.
Usage
$WC_Product_External = new WC_Product_External(); $WC_Product_External->add_to_cart_text();
WC_Product_External::add_to_cart_text() WC Product External::add to cart text code WC 9.4.2
public function add_to_cart_text() { return apply_filters( 'woocommerce_product_add_to_cart_text', $this->get_button_text() ? $this->get_button_text() : _x( 'Buy product', 'placeholder', 'woocommerce' ), $this ); }