wc_sanitize_taxonomy_name() WC 1.0
Sanitize taxonomy names. Slug format (no spaces, lowercase). Urldecode is used to reverse munging of UTF8 characters.
Хуки из функции
Возвращает
Строку.
Использование
wc_sanitize_taxonomy_name( $taxonomy );
- $taxonomy(строка) (обязательный)
- Taxonomy name.
Код wc_sanitize_taxonomy_name() wc sanitize taxonomy name WC 5.0.0
function wc_sanitize_taxonomy_name( $taxonomy ) {
return apply_filters( 'sanitize_taxonomy_name', urldecode( sanitize_title( urldecode( $taxonomy ) ) ), $taxonomy );
}