wc_sanitize_term_text_based()
Sanitize terms from an attribute text based.
Хуков нет.
Возвращает
Строку
.
Использование
wc_sanitize_term_text_based( $term );
- $term(строка) (обязательный)
- Term value.
Список изменений
С версии 2.4.5 | Введена. |
Код wc_sanitize_term_text_based() wc sanitize term text based WC 8.7.0
function wc_sanitize_term_text_based( $term ) { return trim( wp_strip_all_tags( wp_unslash( $term ?? '' ) ) ); }