woocommerce_product_subcategories_args filter-hookWC 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.

Usage

add_filter( 'woocommerce_product_subcategories_args', 'wp_kama_woocommerce_product_subcategories_args_filter' );

/**
 * Function for `woocommerce_product_subcategories_args` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_product_subcategories_args_filter( $array ){

	// filter...
	return $array;
}
$array
-

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.