Yoast_Dashboard_Widget::__construct()publicYoast 1.0

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 22.1

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();
}