WP_Term::filter( string $filter )
Sanitizes term fields, according to the filter type provided.
Parameters
- $filter
-
(Required) Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'raw'.
Source
File: wp-includes/class-wp-term.php
public function filter( $filter ) {
sanitize_term( $this, $this->taxonomy, $filter );
}
Changelog
Version | Description |
---|---|
WP-4.4.0 | Introduced. |