woocommerce_is_attribute_in_product_name хук-фильтр . WC 3.0.2
Check if an attribute is included in the attributes area of a variation name.
Использование
add_filter( 'woocommerce_is_attribute_in_product_name', 'filter_function_name_1440', 10, 3 ); function filter_function_name_1440( $attribute, $name, $name ){ // filter... return $attribute; }
- $attribute(строка)
- Attribute value to check for.
- $name(строка)
- Product name to check in.
- $name
- -
Список изменений
С версии 3.0.2 | Введена. |
Где вызывается хук
woocommerce_is_attribute_in_product_name
woocommerce/includes/wc-attribute-functions.php 406
return apply_filters( 'woocommerce_is_attribute_in_product_name', $is_in_name, $attribute, $name );