Skip to content
Corex

DataRegistry

Corex\Config\Data\DataRegistry · class · Config layer

The registered data sources behind the Corex → Data screen, keyed by source key. The framework registers the submissions source; add-ons register their custom-table sources (spec 030).

Register sources that cannot be built yet, to be built the first time the registry is read. Managed tables are the case this exists for. The registry is constructed while corex-config boots — before init, and therefore before an add-on has had a chance to declare its own table — so anything built eagerly at construction silently excluded every add-on’s model. The newsletter subscribers table, this framework’s reference importable model, was invisible in the admin for exactly that reason while being perfectly visible to WP-CLI, which resolves the registry long after boot.

capabilities(string $key): ?DataSourceCapabilities

Section titled “capabilities(string $key): ?DataSourceCapabilities”