Safely load bundled WordPress plugins inside a host plugin — togglable or always-on — without re-declaration fatal errors.
composer require stellarwp/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.
This program is free software; you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version. See LICENSE.