Yoast\WP\SEO\Llms_Txt\Domain\Content_Types
Content_Type_Entry::__construct
The constructor.
Метод класса: Content_Type_Entry{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Content_Type_Entry = new Content_Type_Entry(); $Content_Type_Entry->__construct( $id, ?string $title, ?string $url, ?string $description, ?string $slug );
- $id(int) (обязательный)
- The ID of the content type entry.
- ?string $title
- .
По умолчанию:null - ?string $url
- .
По умолчанию:null - ?string $description
- .
По умолчанию:null - ?string $slug
- .
По умолчанию:null
Код Content_Type_Entry::__construct() Content Type Entry:: construct Yoast 28.4
public function __construct(
int $id,
?string $title = null,
?string $url = null,
?string $description = null,
?string $slug = null
) {
$this->id = $id;
$this->title = $title;
$this->url = $url;
$this->description = $description;
$this->slug = $slug;
}