WPSEO_Taxonomy_Fields_Presenter::__construct()publicYoast 1.0

Constructs the WPSEO_Taxonomy_Fields_Presenter class.

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

Хуков нет.

Возвращает

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

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

$WPSEO_Taxonomy_Fields_Presenter = new WPSEO_Taxonomy_Fields_Presenter();
$WPSEO_Taxonomy_Fields_Presenter->__construct( $term );
$term(stdClass) (обязательный)
The current term.

Код WPSEO_Taxonomy_Fields_Presenter::__construct() Yoast 22.8

public function __construct( $term ) {
	$this->tax_meta = WPSEO_Taxonomy_Meta::get_term_meta( (int) $term->term_id, $term->taxonomy );
}