woocommerce_is_attribute_in_product_name

This commit is contained in:
Mike Jolley 2017-04-20 15:07:06 +01:00
parent 7f6909040d
commit 1924291f37
1 changed files with 1 additions and 1 deletions

View File

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