Yoast_Dashboard_Widget::__construct()
Yoast_Dashboard_Widget constructor.
Метод класса: Yoast_Dashboard_Widget{}
Хуков нет.
Возвращает
null
. Ничего (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 Dashboard Widget:: construct Yoast 21.6
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(); }