sanitize_taxonomy_name хук-фильтр . WC 1.0
Sanitize taxonomy names. Slug format (no spaces, lowercase). Urldecode is used to reverse munging of UTF8 characters.
Использование
add_filter( 'sanitize_taxonomy_name', 'filter_function_name_7282', 10, 2 ); function filter_function_name_7282( $taxonomy, $taxonomy ){ // filter... return $taxonomy; }
- $taxonomy(строка)
- Taxonomy name.
- $taxonomy
- -
Где вызывается хук
sanitize_taxonomy_name
woocommerce/includes/wc-formatting-functions.php 60
return apply_filters( 'sanitize_taxonomy_name', urldecode( sanitize_title( urldecode( $taxonomy ) ) ), $taxonomy );