wc_sanitize_taxonomy_name()WC 1.0

Sanitize taxonomy names. Slug format (no spaces, lowercase). Urldecode is used to reverse munging of UTF8 characters.

Hooks from the function

Return

String.

Usage

wc_sanitize_taxonomy_name( $taxonomy );
$taxonomy(string) (required)
Taxonomy name.

wc_sanitize_taxonomy_name() code WC 7.3.0

function wc_sanitize_taxonomy_name( $taxonomy ) {
	return apply_filters( 'sanitize_taxonomy_name', urldecode( sanitize_title( urldecode( $taxonomy ?? '' ) ) ), $taxonomy );
}