最近更新的页面
WP_CLI::runcommand()
Run a WP-CLI command. Usage WP_CLI::runcommand( $command, $options = [] ) $command (string) WP-CL...
WP_CLI::run_command()
Run a given command within the current process using the same global parameters. Usage WP_CLI::ru...
WP_CLI::read_value()
Read a value, from various formats. Usage WP_CLI::read_value( $raw_value, $assoc_args = [] ) $raw...
WP_CLI::log()
Display informational message without prefix. Usage WP_CLI::log( $message, $newline = true ) $mes...
WP_CLI::line()
Display informational message without prefix, and ignore --quiet. Usage WP_CLI::line( $message =...
WP_CLI::launch_self()
Run a WP-CLI command in a new process reusing the current runtime arguments. Usage WP_CLI::launch...
WP_CLI::halt()
Halt script execution with a specific return code. Usage WP_CLI::halt( $return_code ) $return_cod...
WP_CLI::get_php_binary()
Get the path to the PHP binary used when executing WP-CLI. Usage WP_CLI::get_php_binary() @return...
WP_CLI::error_multi_line()
Display a multi-line error message in a red box. Doesn't exit script. Usage WP_CLI::error_multi_l...
WP_CLI::error()
Display error message prefixed with "Error: " and exit script. Usage WP_CLI::error( $message, $ex...
WP_CLI::do_hook()
Execute callbacks registered to a given hook. Usage WP_CLI::do_hook( $when, $args ) $when (string...
WP_CLI::debug()
Display debug message prefixed with "Debug: " when --debug is used. Usage WP_CLI::debug( $messag...
WP_CLI::confirm()
Ask for confirmation before running a destructive operation. Usage WP_CLI::confirm( $question, $a...
WP_CLI::add_wp_hook()
Add a callback to a WordPress action or filter. Usage WP_CLI::add_wp_hook( $tag, $function_to_add...
WP_CLI::add_hook()
Schedule a callback to be executed at a certain point. Usage WP_CLI::add_hook( $when, $callback )...
WP_CLI::add_command()
Register a command to WP-CLI. Usage WP_CLI::add_command( $name, $callable, $args = [] ) $name (st...
Then the HTTP status code should be :code
Expect the HTTP status code for visiting http://localhost:8080. Usage Scenario: My example scena...
Then /^the return code should( not)? be (\d+)$/
Expect a specific exit code of the previous command. Usage Scenario: My example scenario Given ...
Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/
Match file contents against a regex. Usage Scenario: My example scenario When I run `wp scaffol...
Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/
Expect a certain file or directory to (not) exist or (not) contain certain contents. Usage Scenar...