Yoast_Notification_Center::is_notification_persistent()privateYoast 1.0

Checks if given notification is persistent.

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

Хуков нет.

Возвращает

true|false. True when notification is not persistent.

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

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

Код Yoast_Notification_Center::is_notification_persistent() Yoast 22.4

private function is_notification_persistent( Yoast_Notification $notification ) {
	return ! $notification->is_persistent();
}