Executes a WP-CLI command
http://wp-Cli.org/commands/
public runWpCliCommand ( string $command, string $subcommand, array $args = [], boolean $debug = false ) : string | ||
$command | string | Like "core" |
$subcommand | string | Like "config". Might be null, e.g. if the main command is "eval" there is no subcommand |
$args | array | Like array("dbname" => "wordpress", "dbuser" => "wpuser", "positionalargument") which will produce something like `--dbname='wordpress' --dbuser='wpuser' 'positionalargument'` |
$debug | boolean | |
Résultat | string |