Yoast_Dashboard_Widget::__construct()
Yoast_Dashboard_Widget constructor.
Метод класса: Yoast_Dashboard_Widget{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Yoast_Dashboard_Widget = new Yoast_Dashboard_Widget(); $Yoast_Dashboard_Widget->__construct( ?WPSEO_Statistics $statistics );
- ?WPSEO_Statistics $statistics **
- -
По умолчанию: null
Код Yoast_Dashboard_Widget::__construct() Yoast Dashboard Widget:: construct Yoast 23.4
public function __construct( ?WPSEO_Statistics $statistics = null ) { if ( $statistics === null ) { $statistics = new WPSEO_Statistics(); } $this->statistics = $statistics; $this->asset_manager = new WPSEO_Admin_Asset_Manager(); }