WP_Term::filter( string $filter )

Sanitizes term fields, according to the filter type provided.


Description Description


Parameters Parameters

$filter

(string) (Required) Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'raw'.


Top ↑

Source Source

File: wp-includes/class-wp-term.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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