wc_sanitize_term_text_based()
Sanitize terms from an attribute text based.
No Hooks.
Return
String
.
Usage
wc_sanitize_term_text_based( $term );
- $term(string) (required)
- Term value.
Changelog
Since 2.4.5 | Introduced. |
wc_sanitize_term_text_based() wc sanitize term text based code WC 9.6.1
function wc_sanitize_term_text_based( $term ) { return trim( wp_strip_all_tags( wp_unslash( $term ?? '' ) ) ); }