Yoast\WP\SEO\Dashboard\Domain\Content_Types
Content_Types_List::add
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() Content Types List::add Yoast 27.8
public function add( Content_Type $content_type ): void {
$this->content_types[ $content_type->get_name() ] = $content_type;
}