Yoast\WP\SEO\Dashboard\Domain\Taxonomies

Taxonomy::__constructpublicYoast 1.0

The constructor.

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

Хуков нет.

Возвращает

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

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

$Taxonomy = new Taxonomy();
$Taxonomy->__construct( $name, $label, $rest_url );
$name(строка) (обязательный)
The name of the taxonomy.
$label(строка) (обязательный)
The label of the taxonomy.
$rest_url(строка) (обязательный)
The REST URL of the taxonomy.

Код Taxonomy::__construct() Yoast 27.4

public function __construct(
	string $name,
	string $label,
	string $rest_url
) {
	$this->name     = $name;
	$this->label    = $label;
	$this->rest_url = $rest_url;
}