Yoast_Dashboard_Widget::__construct()publicYoast 1.0

Yoast_Dashboard_Widget constructor.

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

Хуков нет.

Возвращает

null. Ничего.

Использование

$Yoast_Dashboard_Widget = new Yoast_Dashboard_Widget();
$Yoast_Dashboard_Widget->__construct( $statistics );
$statistics(WPSEO_Statistics|null)
WPSEO_Statistics instance.
По умолчанию: null

Код Yoast_Dashboard_Widget::__construct() Yoast 19.11

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