Yoast_Notification_Center::filter_notification_current_user()
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 Notification Center::filter notification current user Yoast 21.1
private function filter_notification_current_user( Yoast_Notification $notification ) { return $notification->display_for_current_user(); }