woocommerce_taxonomy_objects_(name)
Usage
add_filter( 'woocommerce_taxonomy_objects_(name)', 'wp_kama_woocommerce_taxonomy_objects_name_filter' ); /** * Function for `woocommerce_taxonomy_objects_(name)` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_taxonomy_objects_name_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_taxonomy_objects_(name)
woocommerce/includes/class-wc-post-types.php 280
register_taxonomy( $name, apply_filters( "woocommerce_taxonomy_objects_{$name}", array( 'product' ) ), apply_filters( "woocommerce_taxonomy_args_{$name}", $taxonomy_data ) );