From 1924291f37882e43d4f9892f65bfa386bbb32b34 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 20 Apr 2017 15:07:06 +0100 Subject: [PATCH] woocommerce_is_attribute_in_product_name --- includes/wc-attribute-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-attribute-functions.php b/includes/wc-attribute-functions.php index 980d03ea790..527ba6be967 100644 --- a/includes/wc-attribute-functions.php +++ b/includes/wc-attribute-functions.php @@ -332,5 +332,5 @@ function wc_attributes_array_filter_variation( $attribute ) { */ function wc_is_attribute_in_product_name( $attribute, $name ) { $is_in_name = stristr( $name, ' ' . $attribute . ',' ) || 0 === stripos( strrev( $name ), strrev( ' ' . $attribute ) ); - return apply_filters( 'wc_is_attribute_in_product_name', $is_in_name, $attribute, $name ); + return apply_filters( 'woocommerce_is_attribute_in_product_name', $is_in_name, $attribute, $name ); }