woocommerce_get_product_subcategories_cache_key filter-hookWC 1.0

Get (and cache) product subcategories.

Usage

add_filter( 'woocommerce_get_product_subcategories_cache_key', 'wp_kama_woocommerce_get_product_subcategories_cache_key_filter' );

/**
 * Function for `woocommerce_get_product_subcategories_cache_key` filter-hook.
 * 
 * @param  $parent_id 
 *
 * @return 
 */
function wp_kama_woocommerce_get_product_subcategories_cache_key_filter( $parent_id ){

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

Where the hook is called

woocommerce_get_product_subcategories()
woocommerce_get_product_subcategories_cache_key
woocommerce/includes/wc-template-functions.php 2593
$cache_key          = apply_filters( 'woocommerce_get_product_subcategories_cache_key', 'product-category-hierarchy-' . $parent_id, $parent_id );

Where the hook is used in WooCommerce

Usage not found.