WordPress at a glance
function is not described

wc_sanitize_term_text_based() WC 2.4.5

Sanitize terms from an attribute text based.

No Hooks.

Return

String. Nothing.

Usage

wc_sanitize_term_text_based( $term );
$term(string) (required)
Term value.

Changelog

Since 2.4.5 Introduced.

Code of wc_sanitize_term_text_based() WC 5.3.0

<?php
function wc_sanitize_term_text_based( $term ) {
	return trim( wp_strip_all_tags( wp_unslash( $term ) ) );
}