Uses
Uses | Description |
---|---|
wp-includes/taxonomy.php: sanitize_term() | Sanitize Term all fields. |
Sanitizes term fields, according to the filter type provided.
(string) (Required) Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'raw'.
File: wp-includes/class-wp-term.php
public function filter( $filter ) { sanitize_term( $this, $this->taxonomy, $filter ); }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_term/filter