Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was 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

Description

@mikeschinkel

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions