woocommerce_taxonomy_args_product_visibility
Usage
add_filter( 'woocommerce_taxonomy_args_product_visibility', 'wp_kama_woocommerce_taxonomy_args_product_visibility_filter' ); /** * Function for `woocommerce_taxonomy_args_product_visibility` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_taxonomy_args_product_visibility_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_taxonomy_args_product_visibility
woocommerce/includes/class-wc-post-types.php 74-85
apply_filters( 'woocommerce_taxonomy_args_product_visibility', array( 'hierarchical' => false, 'show_ui' => false, 'show_in_nav_menus' => false, 'query_var' => is_admin(), 'rewrite' => false, 'public' => false, 'label' => _x( 'Product visibility', 'Taxonomy name', 'woocommerce' ), ) )