Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Add method for 3rd parties to add to list of available config options for their own plugin/theme/etc. configuration #9

Open
mikeschinkel opened this issue Nov 6, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mikeschinkel
Copy link
Member

Basically this means to adding a bootstrap class similar to WP_DB_Bootstrap but for the options needed for a plugin/theme/etc.

Current thoughts are to look for an optional more_options field in wp-bootstrap.php that could have the following format:

'more_options' => array(
    'Automattic\\Akismet_' => '{plugins}/akismet'
    'Yoast\\YoastSEO_Config_Loader' => '{plugins}/wordpress-seo'
    'ACME_Theme_' => '{themes}/acme'
);

In the above example:

  1. Akismet is namespaced and there is a class named Automattic\Akismet_Boostrap in '{plugins}/akismet/better-wp-config.php'.
  2. Yoast SEO is namespaced and there is a class named Yoast\YoastSEO_Config_Loader in '{plugins}/wordpress-seo/better-wp-config.php'.
  3. ACME Theme is not namespaced and there is a class named ACME_Theme_Bootstrap in '{themes}/acme/better-wp-config.php'.

But that's just a firstt draft. Open to any and all feedback that allows for developers to add their own configuration files for 3rd party code, that allows 3rd parties to add their own support for Better WP-Config, that is simple and easy for developers to find and use the 3rd party support, and that makes extensions fully available via the bootstrap process.

@mikeschinkel mikeschinkel added the enhancement New feature or request label Nov 6, 2018
@mikeschinkel mikeschinkel self-assigned this Nov 6, 2018
@mikeschinkel mikeschinkel changed the title Add method for 3rd parties to add to list of available config options their configuration Add method for 3rd parties to add to list of available config options for their own configuration Nov 6, 2018
@mikeschinkel mikeschinkel changed the title Add method for 3rd parties to add to list of available config options for their own configuration Add method for 3rd parties to add to list of available config options for their own plugin/theme/etc. configuration Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant