woocommerce_taxonomy_args_product_shipping_class
Usage
add_filter( 'woocommerce_taxonomy_args_product_shipping_class', 'wp_kama_woocommerce_taxonomy_args_product_shipping_class_filter' ); /** * Function for `woocommerce_taxonomy_args_product_shipping_class` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_taxonomy_args_product_shipping_class_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_taxonomy_args_product_shipping_class
woocommerce/includes/class-wc-post-types.php 180-211
apply_filters( 'woocommerce_taxonomy_args_product_shipping_class', array( 'hierarchical' => false, 'update_count_callback' => '_update_post_term_count', 'label' => __( 'Shipping classes', 'woocommerce' ), 'labels' => array( 'name' => __( 'Product shipping classes', 'woocommerce' ), 'singular_name' => __( 'Shipping class', 'woocommerce' ), 'menu_name' => _x( 'Shipping classes', 'Admin menu name', 'woocommerce' ), 'search_items' => __( 'Search shipping classes', 'woocommerce' ), 'all_items' => __( 'All shipping classes', 'woocommerce' ), 'parent_item' => __( 'Parent shipping class', 'woocommerce' ), 'parent_item_colon' => __( 'Parent shipping class:', 'woocommerce' ), 'edit_item' => __( 'Edit shipping class', 'woocommerce' ), 'update_item' => __( 'Update shipping class', 'woocommerce' ), 'add_new_item' => __( 'Add new shipping class', 'woocommerce' ), 'new_item_name' => __( 'New shipping class Name', 'woocommerce' ), ), 'show_ui' => false, 'show_in_quick_edit' => false, 'show_in_nav_menus' => false, 'query_var' => is_admin(), 'capabilities' => array( 'manage_terms' => 'manage_product_terms', 'edit_terms' => 'edit_product_terms', 'delete_terms' => 'delete_product_terms', 'assign_terms' => 'assign_product_terms', ), 'rewrite' => false, ) )