WordPress at a glance
function is not described

WP_Term::filter() public WP 4.4.0

Sanitizes term fields, according to the filter type provided.

{} It's a method of the class: WP_Term{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_Term = new WP_Term();
$WP_Term->filter( $filter );
$filter(string) (required)
Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'raw'.

Changelog

Since 4.4.0 Introduced.

Code of WP_Term::filter() WP 5.5.2

<?php
public function filter( $filter ) {
	sanitize_term( $this, $this->taxonomy, $filter );
}