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

NOTE: using child_of instead of parent - this is not ideal but due to a WP bug ( https://core.trac.wordpress.org/ticket/15626 ) pad_counts won't work.

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

add_filter( 'woocommerce_product_subcategories_args', 'wp_kama_woocommerce_product_subcategories_args_filter' );
function wp_kama_woocommerce_product_subcategories_args_filter( $array ){
	// filter...

	return $array;
}
$array
-

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

woocommerce_get_product_subcategories()
woocommerce_product_subcategories_args
woocommerce/includes/wc-template-functions.php 2587-2596
apply_filters(
	'woocommerce_product_subcategories_args',
	array(
		'parent'       => $parent_id,
		'hide_empty'   => 0,
		'hierarchical' => 1,
		'taxonomy'     => 'product_cat',
		'pad_counts'   => 1,
	)
)

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

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