WPSEO_Abstract_Metabox_Tab_With_Sections::__construct
Constructor.
Метод класса: WPSEO_Abstract_Metabox_Tab_With_Sections{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WPSEO_Abstract_Metabox_Tab_With_Sections = new WPSEO_Abstract_Metabox_Tab_With_Sections(); $WPSEO_Abstract_Metabox_Tab_With_Sections->__construct( $name, $link_content, $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.
- $options(массив)
- Optional link attributes.
По умолчанию:[]
Код WPSEO_Abstract_Metabox_Tab_With_Sections::__construct() WPSEO Abstract Metabox Tab With Sections:: construct Yoast 28.0
public function __construct( $name, $link_content, array $options = [] ) {
$default_options = [
'link_title' => '',
'link_class' => '',
'link_aria_label' => '',
];
$options = array_merge( $default_options, $options );
$this->name = $name;
$this->link_content = $link_content;
$this->link_title = $options['link_title'];
$this->link_class = $options['link_class'];
$this->link_aria_label = $options['link_aria_label'];
}