WPSEO_Admin_Help_Panel::__construct()publicYoast 1.0


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

Хуков нет.


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


$WPSEO_Admin_Help_Panel = new WPSEO_Admin_Help_Panel();
$WPSEO_Admin_Help_Panel->__construct( $id, $help_button_text, $help_content, $wrapper );
$id(строка) (обязательный)
Unique identifier of the element the inline help refers to, used as an identifier in the html.
$help_button_text(строка) (обязательный)
The Help Button text. Needs a properly escaped string.
$help_content(строка) (обязательный)
The Help Panel content. Needs a properly escaped string (might contain HTML).
Optional Whether to print out a container div element for the Help Panel, used for styling. Pass a has-wrapper value to print out the container.
По умолчанию: no container

Код WPSEO_Admin_Help_Panel::__construct() Yoast 21.5

public function __construct( $id, $help_button_text, $help_content, $wrapper = '' ) {
	$this->id               = $id;
	$this->help_button_text = $help_button_text;
	$this->help_content     = $help_content;
	$this->wrapper          = $wrapper;