use woocommerce_product_add_to_cart_text hook

This commit is contained in:
divadmts 2017-02-07 01:04:34 +08:00
parent 32d5e3d6f0
commit 8df243fdbf
No known key found for this signature in database
GPG Key ID: E6F94BB1552F7C05
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}