Languages: English • term 日本語 (Add your language)
Sanitize Term all fields.
Relys on sanitize_term_field() to sanitize the term. The difference is that this function will sanitize all fields. The context is based on sanitize_term_field().
The $term is expected to be either an array or an object.
<?php sanitize_term( $term, $taxonomy, $context ) ?>
Since: 2.3.0
sanitize_term() is located in wp-includes/taxonomy.php
.