WPSEO_Admin_Help_Panel::__construct()
Constructor.
Метод класса: 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).
- $wrapper(строка)
- 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() WPSEO Admin Help Panel:: construct Yoast 23.4
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; }