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