Skip to content

Commit

Permalink
Merge pull request #128 from conversionxl/docs-multi-file-mu-plugin-p…
Browse files Browse the repository at this point in the history
…ackages

Document multi-file MU plugin packages support
  • Loading branch information
gmazzap authored Feb 26, 2023
2 parents d6cfcea + 2565a28 commit eac55e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/05-WP-Starter-Steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ There's no configuration affecting this step. The MU plugins to load are identif

If no MU plugin packages are installed via Composer, the step is entirely skipped.

WP Starter also supports packages containing multiple MU plugin, or any other purpose, PHP files. Because a multi-file package can contain unrelated PHP code, each MU plugin needs to have a WordPress standard `Plugin Name` header to have it included in MU plugin loader.

### `EnvExampleStep`

It is a quite standard practice for applications that support `.env` files to provide a `.env.example` file as a blueprint of the available configurations.
Expand Down
2 changes: 1 addition & 1 deletion src/Step/MuLoaderStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function run(Config $config, Paths $paths): int

$built = $this->builder->build(
$paths,
'wpstarter-mu-loader.php',
self::TARGET_FILE_NAME,
['MU_PLUGINS_LIST' => implode(', ', $muPluginsPaths)]
);

Expand Down

0 comments on commit eac55e0

Please sign in to comment.