Wincher_Dashboard_Widget::enqueue_wincher_dashboard_assets()
Enqueues assets for the dashboard if the current page is the dashboard.
Метод класса: Wincher_Dashboard_Widget{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Wincher_Dashboard_Widget = new Wincher_Dashboard_Widget(); $Wincher_Dashboard_Widget->enqueue_wincher_dashboard_assets();
Код Wincher_Dashboard_Widget::enqueue_wincher_dashboard_assets() Wincher Dashboard Widget::enqueue wincher dashboard assets Yoast 24.0
public function enqueue_wincher_dashboard_assets() { if ( ! $this->is_dashboard_screen() ) { return; } $this->asset_manager->localize_script( 'wincher-dashboard-widget', 'wpseoWincherDashboardWidgetL10n', $this->localize_wincher_dashboard_script() ); $this->asset_manager->enqueue_script( 'wincher-dashboard-widget' ); $this->asset_manager->enqueue_style( 'wp-dashboard' ); $this->asset_manager->enqueue_style( 'monorepo' ); }