WPSEO_Term_Metabox_Formatter::__construct()publicYoast 1.0

WPSEO_Taxonomy_Scraper constructor.

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

Хуков нет.

Возвращает

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

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

$WPSEO_Term_Metabox_Formatter = new WPSEO_Term_Metabox_Formatter();
$WPSEO_Term_Metabox_Formatter->__construct( $taxonomy, $term );
$taxonomy(stdClass) (обязательный)
Taxonomy.
$term(WP_Term|stdClass) (обязательный)
Term.

Код WPSEO_Term_Metabox_Formatter::__construct() Yoast 22.4

public function __construct( $taxonomy, $term ) {
	$this->taxonomy = $taxonomy;
	$this->term     = $term;

	$this->use_social_templates = $this->use_social_templates();
}