Yoast_Notification_Center::remove_storage
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 Notification Center::remove storage Yoast 28.0
protected function remove_storage() {
if ( ! $this->has_stored_notifications() ) {
return false;
}
delete_user_option( get_current_user_id(), self::STORAGE_KEY );
return true;
}