Yoast\WP\SEO\Dashboard\Domain\Content_Types

Content_Types_List::add()publicYoast 1.0

Adds a content type to the list.

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

Хуков нет.

Возвращает

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

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

$Content_Types_List = new Content_Types_List();
$Content_Types_List->add( $content_type ): void;
$content_type(Content_Type) (обязательный)
The content type to add.

Код Content_Types_List::add() Yoast 24.4

public function add( Content_Type $content_type ): void {
	$this->content_types[ $content_type->get_name() ] = $content_type;
}