wc_sanitize_term_text_based( string $term )

Sanitize terms from an attribute text based.


Description Description


Parameters Parameters

$term

(Required) Term value.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/wc-formatting-functions.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.5 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.