WPSEO_Taxonomy_Fields_Presenter::__construct()publicYoast 1.0

Constructs the WPSEO_Taxonomy_Fields_Presenter class.

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

Хуков нет.

Возвращает

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 19.10

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