WP_Term::filter

Advertisement

Summery Summery

Sanitizes term fields, according to the filter type provided.

Syntax Syntax

WP_Term::filter( string $filter )

Parameters Parameters

$filter

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

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.