From 8df243fdbf24516ed5b7d579fbf08291078f543d Mon Sep 17 00:00:00 2001 From: divadmts Date: Tue, 7 Feb 2017 01:04:34 +0800 Subject: [PATCH] use woocommerce_product_add_to_cart_text hook --- includes/class-wc-product-external.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-product-external.php b/includes/class-wc-product-external.php index 1d81376a193..bb6f2f4adf9 100644 --- a/includes/class-wc-product-external.php +++ b/includes/class-wc-product-external.php @@ -177,6 +177,6 @@ class WC_Product_External extends WC_Product { * @return string */ public function add_to_cart_text() { - return apply_filters( 'woocommerce_product_single_add_to_cart_text', $this->get_button_text(), $this ); + return apply_filters( 'woocommerce_product_add_to_cart_text', $this->get_button_text(), $this ); } }