woocommerce_taxonomy_args_(taxonomy_name)
Использование
add_filter( 'woocommerce_taxonomy_args_(taxonomy_name)', 'wp_kama_woocommerce_taxonomy_args_name_filter' ); /** * Function for `woocommerce_taxonomy_args_(taxonomy_name)` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_taxonomy_args_name_filter( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
woocommerce_taxonomy_args_(taxonomy_name)
woocommerce/includes/import/abstract-wc-product-importer.php 691-702
apply_filters( 'woocommerce_taxonomy_args_' . $taxonomy_name, array( 'labels' => array( 'name' => $raw_name, ), 'hierarchical' => true, 'show_ui' => false, 'query_var' => true, 'rewrite' => false, ) )
Где используется хук в WooCommerce
woocommerce/src/Admin/Features/AsyncProductEditorCategoryField/Init.php 27
add_filter( 'woocommerce_taxonomy_args_product_cat', array( $this, 'add_metabox_args' ) );