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