woocommerce_is_attribute_in_product_name
This commit is contained in:
parent
7f6909040d
commit
1924291f37
|
@ -332,5 +332,5 @@ function wc_attributes_array_filter_variation( $attribute ) {
|
||||||
*/
|
*/
|
||||||
function wc_is_attribute_in_product_name( $attribute, $name ) {
|
function wc_is_attribute_in_product_name( $attribute, $name ) {
|
||||||
$is_in_name = stristr( $name, ' ' . $attribute . ',' ) || 0 === stripos( strrev( $name ), strrev( ' ' . $attribute ) );
|
$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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue