wc_sanitize_taxonomy_name()
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 8.7.0
function wc_sanitize_taxonomy_name( $taxonomy ) { return apply_filters( 'sanitize_taxonomy_name', urldecode( sanitize_title( urldecode( $taxonomy ?? '' ) ) ), $taxonomy ); }