Yoast\WP\SEO\Dashboard\Domain\Content_Types
Content_Type::__construct()
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() 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; }