Sanitizes term fields, according to the filter type provided.
Parameters
$filter
stringrequired- Filter context. Accepts
'edit'
,'db'
,'display'
,'attribute'
,'js'
,'rss'
, or'raw'
.
Source
public function filter( $filter ) {
sanitize_term( $this, $this->taxonomy, $filter );
}
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.