woocommerce_taxonomy_objects_product_cat
Usage
add_filter( 'woocommerce_taxonomy_objects_product_cat', 'wp_kama_woocommerce_taxonomy_objects_product_cat_filter' ); /** * Function for `woocommerce_taxonomy_objects_product_cat` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_taxonomy_objects_product_cat_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_taxonomy_objects_product_cat
woocommerce/includes/class-wc-post-types.php 90
apply_filters( 'woocommerce_taxonomy_objects_product_cat', array( 'product' ) ),