Yoast_Notification_Center::filter_notification_current_user()privateYoast 1.0

Filter notifications that should not be displayed for the current user.

Метод класса: Yoast_Notification_Center{}

Хуков нет.

Возвращает

true|false.

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

// private - только в коде основоного (родительского) класса
$result = $this->filter_notification_current_user( $notification );
$notification(Yoast_Notification) (обязательный)
Notification to test.

Код Yoast_Notification_Center::filter_notification_current_user() Yoast 22.4

private function filter_notification_current_user( Yoast_Notification $notification ) {
	return $notification->display_for_current_user();
}