WP_Term::filter( string $filter )

In this article

Sanitizes term fields, according to the filter type provided.

Parameters

$filterstringrequired
Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'rss', or 'raw'.

Source

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.