forked from wp-cli/wp-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add runtime_args to options array for runcommand
Allow a caller to pass runtime arguments to WP_CLI::runcommand so that it is possible to store all 'default' options in one place. ex if you want to avoid plugins and themes per default in a script that calls runcommand a lot: ``` $default_cli_opts = array( 'return' => 'all', 'exit_error' => false, 'runtime_args' => array( '--skip-themes', '--skip-plugins' ), ); $output = WP_CLI::runcommand( 'option get siteurl', $default_cli_opts); ```
- Loading branch information
Showing
1 changed file
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters