woocommerce_taxonomy_args_product_tag
Usage
add_filter( 'woocommerce_taxonomy_args_product_tag', 'wp_kama_woocommerce_taxonomy_args_product_tag_filter' ); /** * Function for `woocommerce_taxonomy_args_product_tag` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_taxonomy_args_product_tag_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_taxonomy_args_product_tag
woocommerce/includes/class-wc-post-types.php 135-174
apply_filters( 'woocommerce_taxonomy_args_product_tag', array( 'hierarchical' => false, 'update_count_callback' => '_wc_term_recount', 'label' => __( 'Product tags', 'woocommerce' ), 'labels' => array( 'name' => __( 'Product tags', 'woocommerce' ), 'singular_name' => __( 'Tag', 'woocommerce' ), 'menu_name' => _x( 'Tags', 'Admin menu name', 'woocommerce' ), 'search_items' => __( 'Search tags', 'woocommerce' ), 'all_items' => __( 'All tags', 'woocommerce' ), 'edit_item' => __( 'Edit tag', 'woocommerce' ), 'update_item' => __( 'Update tag', 'woocommerce' ), 'add_new_item' => __( 'Add new tag', 'woocommerce' ), 'new_item_name' => __( 'New tag name', 'woocommerce' ), 'popular_items' => __( 'Popular tags', 'woocommerce' ), 'separate_items_with_commas' => __( 'Separate tags with commas', 'woocommerce' ), 'add_or_remove_items' => __( 'Add or remove tags', 'woocommerce' ), 'choose_from_most_used' => __( 'Choose from the most used tags', 'woocommerce' ), 'not_found' => __( 'No tags found', 'woocommerce' ), 'item_link' => __( 'Product Tag Link', 'woocommerce' ), 'item_link_description' => __( 'A link to a product tag.', 'woocommerce' ), 'template_name' => _x( 'Products by Tag', 'Template name', 'woocommerce' ), ), 'show_in_rest' => true, 'show_ui' => true, 'query_var' => true, 'capabilities' => array( 'manage_terms' => 'manage_product_terms', 'edit_terms' => 'edit_product_terms', 'delete_terms' => 'delete_product_terms', 'assign_terms' => 'assign_product_terms', ), 'rewrite' => array( 'slug' => $permalinks['tag_rewrite_slug'], 'with_front' => false, ), ) )