WP_CLI::运行命令() 编辑
用法
WP_CLI::run_command($args,$assoc_args=[])
笔记
对象开始(); WP_CLI::run_command(数组('CLI','cmd-dump')); $ret=ob_get_clean();
相关的
WP_CLI::启动() –启动接管I/O的任意外部进程。 WP_CLI::launch_self() –在新进程中运行WP-CLI命令,重用当前运行时参数。 WP_CLI::运行命令() –运行WP-CLI命令。