Safely load bundled WordPress plugins inside a host plugin — togglable or always-on — without re-declaration fatal errors.
composer require nexcess/plugin-absorberUse Strauss. Two or more plugins shipping different versions of this library will collide otherwise.
Do not let
extra.strauss.constant_prefixrewrite a sub-plugin'splugin_loaded_constant. Those are real, shared runtime constants — the whole safety mechanism depends on the bundled copy and the standalone defining the same name. Add them toexclude_from_copy.
Requires PHP 7.4+ and WordPress 6.4+.
Added as each piece lands.