WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Integrations\Watchers

Primary_Term_Watcher::__construct() public Yoast 1.0

Primary_Term_Watcher constructor.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$Primary_Term_Watcher = new Primary_Term_Watcher();
$Primary_Term_Watcher->__construct(;
$repository(Primary_Term_Repository) (обязательный)
The primary term repository.
$site(Site_Helper) (обязательный)
The site helper.
$primary_term(Primary_Term_Helper) (обязательный)
The primary term helper.
$primary_term_builder(Primary_Term_Builder) (обязательный)
The primary term builder.

Код Primary_Term_Watcher::__construct() Yoast 15.6.2

<?php
public function __construct(
	Primary_Term_Repository $repository,
	Site_Helper $site,
	Primary_Term_Helper $primary_term,
	Primary_Term_Builder $primary_term_builder
) {
	$this->repository           = $repository;
	$this->site                 = $site;
	$this->primary_term         = $primary_term;
	$this->primary_term_builder = $primary_term_builder;
}