WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

Yoast_Notifications::collect_notifications() public Yoast 1.0

Collect the notifications and group them together.

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

Хуков нет.

Возвращает

null. Ничего.

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

$result = Yoast_Notifications::collect_notifications();

Код Yoast_Notifications::collect_notifications() Yoast 16.2

<?php
public static function collect_notifications() {

	$notification_center = Yoast_Notification_Center::get();

	$notifications            = $notification_center->get_sorted_notifications();
	self::$notification_count = count( $notifications );

	self::$errors           = array_filter( $notifications, [ __CLASS__, 'filter_error_notifications' ] );
	self::$dismissed_errors = array_filter( self::$errors, [ __CLASS__, 'filter_dismissed_notifications' ] );
	self::$active_errors    = array_diff( self::$errors, self::$dismissed_errors );

	self::$warnings           = array_filter( $notifications, [ __CLASS__, 'filter_warning_notifications' ] );
	self::$dismissed_warnings = array_filter( self::$warnings, [ __CLASS__, 'filter_dismissed_notifications' ] );
	self::$active_warnings    = array_diff( self::$warnings, self::$dismissed_warnings );
}