WPSEO_Metabox_Collapsibles_Sections::__construct()publicYoast 1.0


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

Хуков нет.


null. Ничего.


$WPSEO_Metabox_Collapsibles_Sections = new WPSEO_Metabox_Collapsibles_Sections();
$WPSEO_Metabox_Collapsibles_Sections->__construct( $name, $link_content, $collapsibles, $options );
$name(строка) (обязательный)
The name of the section, used as an identifier in the html. Can only contain URL safe characters.
$link_content(строка) (обязательный)
The text content of the section link.
The metabox collapsibles (WPSEO_Metabox_Collapsible[]) to be included in the section.
По умолчанию: []
Optional link attributes.
По умолчанию: []

Код WPSEO_Metabox_Collapsibles_Sections::__construct() Yoast 19.11

public function __construct( $name, $link_content, array $collapsibles = [], array $options = [] ) {
	parent::__construct( $name, $link_content, $options );

	$this->collapsibles = $collapsibles;