woocommerce_product_variation_title_include_attributes хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_product_variation_title_include_attributes', 'wp_kama_woocommerce_product_variation_title_include_attributes_filter', 10, 2 );

/**
 * Function for `woocommerce_product_variation_title_include_attributes` filter-hook.
 * 
 * @param  $should_include_attributes 
 * @param  $product                   
 *
 * @return 
 */
function wp_kama_woocommerce_product_variation_title_include_attributes_filter( $should_include_attributes, $product ){

	// filter...
	return $should_include_attributes;
}
$should_include_attributes
-
$product
-

Где вызывается хук

WC_Product_Variation_Data_Store_CPT::generate_product_title()
woocommerce_product_variation_title_include_attributes
woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php 308
$should_include_attributes = apply_filters( 'woocommerce_product_variation_title_include_attributes', $should_include_attributes, $product );

Где используется хук в WooCommerce

Использование не найдено.