Wincher_Dashboard_Widget::add_wincher_dashboard_widget()
Adds the Wincher dashboard widget to WordPress.
Метод класса: Wincher_Dashboard_Widget{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Wincher_Dashboard_Widget = new Wincher_Dashboard_Widget(); $Wincher_Dashboard_Widget->add_wincher_dashboard_widget();
Код Wincher_Dashboard_Widget::add_wincher_dashboard_widget() Wincher Dashboard Widget::add wincher dashboard widget Yoast 24.0
public function add_wincher_dashboard_widget() { add_filter( 'postbox_classes_dashboard_wpseo-wincher-dashboard-overview', [ $this, 'wpseo_wincher_dashboard_overview_class' ] ); wp_add_dashboard_widget( 'wpseo-wincher-dashboard-overview', /* translators: %1$s expands to Yoast SEO, %2$s to Wincher */ sprintf( __( '%1$s / %2$s: Top Keyphrases', 'wordpress-seo' ), 'Yoast SEO', 'Wincher' ), [ $this, 'display_wincher_dashboard_widget' ] ); }