跳转到主要内容

最近更新的页面

WP_CLI::runcommand()

WP-CLI 手册(英文原版) References

Run a WP-CLI command. Usage WP_CLI::runcommand( $command, $options = [] ) $command (string) WP-CL...

由 cocobook-sync 更新于 1 个月前

WP_CLI::run_command()

WP-CLI 手册(英文原版) References

Run a given command within the current process using the same global parameters. Usage WP_CLI::ru...

由 cocobook-sync 更新于 1 个月前

WP_CLI::read_value()

WP-CLI 手册(英文原版) References

Read a value, from various formats. Usage WP_CLI::read_value( $raw_value, $assoc_args = [] ) $raw...

由 cocobook-sync 更新于 1 个月前

WP_CLI::log()

WP-CLI 手册(英文原版) References

Display informational message without prefix. Usage WP_CLI::log( $message, $newline = true ) $mes...

由 cocobook-sync 更新于 1 个月前

WP_CLI::line()

WP-CLI 手册(英文原版) References

Display informational message without prefix, and ignore --quiet. Usage WP_CLI::line( $message =...

由 cocobook-sync 更新于 1 个月前

WP_CLI::launch_self()

WP-CLI 手册(英文原版) References

Run a WP-CLI command in a new process reusing the current runtime arguments. Usage WP_CLI::launch...

由 cocobook-sync 更新于 1 个月前

WP_CLI::halt()

WP-CLI 手册(英文原版) References

Halt script execution with a specific return code. Usage WP_CLI::halt( $return_code ) $return_cod...

由 cocobook-sync 更新于 1 个月前

WP_CLI::get_php_binary()

WP-CLI 手册(英文原版) References

Get the path to the PHP binary used when executing WP-CLI. Usage WP_CLI::get_php_binary() @return...

由 cocobook-sync 更新于 1 个月前

WP_CLI::error_multi_line()

WP-CLI 手册(英文原版) References

Display a multi-line error message in a red box. Doesn't exit script. Usage WP_CLI::error_multi_l...

由 cocobook-sync 更新于 1 个月前

WP_CLI::error()

WP-CLI 手册(英文原版) References

Display error message prefixed with "Error: " and exit script. Usage WP_CLI::error( $message, $ex...

由 cocobook-sync 更新于 1 个月前

WP_CLI::do_hook()

WP-CLI 手册(英文原版) References

Execute callbacks registered to a given hook. Usage WP_CLI::do_hook( $when, $args ) $when (string...

由 cocobook-sync 更新于 1 个月前

WP_CLI::debug()

WP-CLI 手册(英文原版) References

Display debug message prefixed with "Debug: " when --debug is used. Usage WP_CLI::debug( $messag...

由 cocobook-sync 更新于 1 个月前

WP_CLI::confirm()

WP-CLI 手册(英文原版) References

Ask for confirmation before running a destructive operation. Usage WP_CLI::confirm( $question, $a...

由 cocobook-sync 更新于 1 个月前

WP_CLI::add_wp_hook()

WP-CLI 手册(英文原版) References

Add a callback to a WordPress action or filter. Usage WP_CLI::add_wp_hook( $tag, $function_to_add...

由 cocobook-sync 更新于 1 个月前

WP_CLI::add_hook()

WP-CLI 手册(英文原版) References

Schedule a callback to be executed at a certain point. Usage WP_CLI::add_hook( $when, $callback )...

由 cocobook-sync 更新于 1 个月前

WP_CLI::add_command()

WP-CLI 手册(英文原版) References

Register a command to WP-CLI. Usage WP_CLI::add_command( $name, $callable, $args = [] ) $name (st...

由 cocobook-sync 更新于 1 个月前

Then the HTTP status code should be :code

WP-CLI 手册(英文原版) References

Expect the HTTP status code for visiting http://localhost:8080. Usage Scenario: My example scena...

由 cocobook-sync 更新于 1 个月前

Then /^the return code should( not)? be (\d+)$/

WP-CLI 手册(英文原版) References

Expect a specific exit code of the previous command. Usage Scenario: My example scenario Given ...

由 cocobook-sync 更新于 1 个月前

Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/

WP-CLI 手册(英文原版) References

Match file contents against a regex. Usage Scenario: My example scenario When I run `wp scaffol...

由 cocobook-sync 更新于 1 个月前

Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/

WP-CLI 手册(英文原版) References

Expect a certain file or directory to (not) exist or (not) contain certain contents. Usage Scenar...

由 cocobook-sync 更新于 1 个月前