Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an --only-plugins and --only-themes config flag #158

Open
Orrison opened this issue Oct 30, 2020 · 1 comment
Open

Add an --only-plugins and --only-themes config flag #158

Orrison opened this issue Oct 30, 2020 · 1 comment

Comments

@Orrison
Copy link

Orrison commented Oct 30, 2020

Today we have a --skip-plugins and --skip-themes flag that allow us to specify what plugins and themes NOT to load. But sometimes you want to load one or more plugin/theme but none of the others. Perhaps a plugin exposes some wp-cli command you need to use but you don't want any other plugins loaded while running it.

To do so now would take some run around to get a list of plugins then pass them to the --skip-plugins command sans the plugin you actually wanted loaded.

@danielbachhuber
Copy link
Member

Thanks for the suggestion, @Orrison !

--skip-themes and --skip-plugins are global parameters, and global parameters can conflict with plugin parameters. As such, I think we're unlikely to introduce --only-plugins and --only-themes global parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants