WPSEO_Admin_Menu::get_notification_counter()
Returns the notification count in HTML format.
Метод класса: WPSEO_Admin_Menu{}
Хуков нет.
Возвращает
Строку
. The notification count in HTML format.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_notification_counter();
Код WPSEO_Admin_Menu::get_notification_counter() WPSEO Admin Menu::get notification counter Yoast 24.4
protected function get_notification_counter() { $notification_center = Yoast_Notification_Center::get(); $notification_count = $notification_center->get_notification_count(); // Add main page. /* translators: Hidden accessibility text; %s: number of notifications. */ $notifications = sprintf( _n( '%s notification', '%s notifications', $notification_count, 'wordpress-seo' ), number_format_i18n( $notification_count ) ); return sprintf( '<span class="update-plugins count-%1$d"><span class="plugin-count" aria-hidden="true">%1$d</span><span class="screen-reader-text">%2$s</span></span>', $notification_count, $notifications ); }