Yoast_Notifications::get_active_notification_count()public staticYoast 1.0

Get the number of active notifications.

{} Это метод класса: Yoast_Notifications{}

Хуков нет.

Возвращает

int.

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

$result = Yoast_Notifications::get_active_notification_count();

Код Yoast_Notifications::get_active_notification_count() Yoast 19.7.1

public static function get_active_notification_count() {

	return ( count( self::$active_errors ) + count( self::$active_warnings ) );
}