Storage

Overview

WordCore uses a flat-file JSON storage system. All data lives under the data/ directory. Keys follow a namespace/subkey convention.

API

Storage::get('my-addon/settings', $default);
Storage::set('my-addon/settings', $value);
Storage::delete('my-addon/settings');
Storage::list('my-addon/');

Always namespace your keys with your addon slug to avoid collisions with other addons.