WP_Term::filter()publicWP 4.4.0

Sanitizes term fields, according to the filter type provided.

Метод класса: WP_Term{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_Term = new WP_Term();
$WP_Term->filter( $filter );
$filter(строка) (обязательный)
Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'rss', or 'raw'.

Список изменений

С версии 4.4.0 Введена.

Код WP_Term::filter() WP 6.5.2

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