Yoast\WP\SEO\Editors\Framework\Site

Term_Site_Information::set_term()publicYoast 1.0

Sets the term for the information object and retrieves its taxonomy.

@param WP_Term|string|false $term The term.

@return void

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

Хуков нет.

Возвращает

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

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

$Term_Site_Information = new Term_Site_Information();
$Term_Site_Information->set_term( $term );
$term (обязательный)
-

Код Term_Site_Information::set_term() Yoast 25.1

public function set_term( $term ) {
	$this->term     = $term;
	$this->taxonomy = \get_taxonomy( $term->taxonomy );
}