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