Yoast\WP\SEO\Dashboard\Domain\Content_Types

Content_Type::__construct()publicYoast 1.0

The constructor.

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

Хуков нет.

Возвращает

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

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

$Content_Type = new Content_Type();
$Content_Type->__construct( $name, $label, ?Taxonomy $taxonomy );
$name(строка) (обязательный)
The name of the content type.
$label(строка) (обязательный)
The label of the content type.
?Taxonomy $taxonomy **
-
По умолчанию: null

Код Content_Type::__construct() Yoast 24.4

public function __construct( string $name, string $label, ?Taxonomy $taxonomy = null ) {
	$this->name     = $name;
	$this->label    = $label;
	$this->taxonomy = $taxonomy;
}