Yoast_Notification_Center::remove_storage()protectedYoast 1.0

Removes all notifications from storage.

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

Хуков нет.

Возвращает

true|false. True when notifications got removed.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->remove_storage();

Код Yoast_Notification_Center::remove_storage() Yoast 22.4

protected function remove_storage() {
	if ( ! $this->has_stored_notifications() ) {
		return false;
	}

	delete_user_option( get_current_user_id(), self::STORAGE_KEY );
	return true;
}