Yoast\WP\SEO\Presenters\Admin
Alert_Presenter::__construct()
Alert_Presenter constructor.
Метод класса: Alert_Presenter{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Alert_Presenter = new Alert_Presenter(); $Alert_Presenter->__construct( $content, $type );
- $content(строка) (обязательный)
- Content of the Alert.
- $type(строка)
- Type of the Alert (error/info/success/warning).
По умолчанию: warning
Код Alert_Presenter::__construct() Alert Presenter:: construct Yoast 24.1
public function __construct( $content, $type = 'warning' ) { $this->content = $content; $this->type = $type; if ( ! $this->asset_manager ) { $this->asset_manager = new WPSEO_Admin_Asset_Manager(); } $this->asset_manager->enqueue_style( 'alert' ); }