Extension Library
The Extension Library package provides a unified system for registering and managing all available T2 extensions. It automatically discovers extensions in the library and registers them based on your configuration.
Last modified: June 2, 2025
How It Works
- The main logic is in
src/extension-library.php
. - On boot, the library:
- Registers all available extensions using the
t2/extensions/available
filter. - Reads configuration (via
T2\Config\get_config_variable
) to determine which extensions to include or exclude.
- Registers all available extensions using the
Bootstrapping
The library is booted automatically when included, registering all extensions according to your configuration.