woocommerce_is_attribute_in_product_name

woocommerce_is_attribute_in_product_name

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_is_attribute_in_product_name') is found 1 times:

  • /includes/wc-attribute-functions.php line 406
     * @return bool
     */
    function wc_is_attribute_in_product_name( $attribute, $name ) {
    	$is_in_name = stristr( $name, ' ' . $attribute . ',' ) || 0 === stripos( strrev( $name ), strrev( ' ' . $attribute ) );
    	return apply_filters( 'woocommerce_is_attribute_in_product_name', $is_in_name, $attribute, $name );
    }
    
    /**
     * Callback for array filter to get default attributes.  Will allow for '0' string values, but regard all other
     * class PHP FALSE equivalents normally.
     *