Метод |
Описание |
|
_run_command ( ) |
|
|
auto_check_update ( ) |
Check whether there's a WP-CLI update available, and suggest update if so. |
|
back_compat_conversions ( array $args, array $assoc_args ) : array |
Transparently convert deprecated syntaxes |
|
check_root ( ) |
|
|
check_wp_version ( ) |
|
|
cmd_starts_with ( $prefix ) |
|
|
do_early_invoke ( string $when ) |
Perform the early invocation of a command. |
|
extract_subdir_path ( string $index_path ) : string | false |
Attempts to find the path to the WP install inside index.php |
|
fake_current_site_blog ( $url_parts ) |
|
|
find_wp_root ( ) : string |
Find the directory that contains the WordPress files. |
|
get_global_config_path ( ) : string | false |
Get the path to the global configuration YAML file. |
|
get_project_config_path ( ) : string | false |
Get the path to the project-specific configuration
YAML file. |
|
guess_url ( array $assoc_args ) : string | false |
Guess which URL context WP-CLI has been invoked under. |
|
init_colorization ( ) |
|
|
init_config ( ) |
|
|
init_logger ( ) |
|
|
is_multisite ( ) |
Whether or not this WordPress install is multisite. |
|
maybe_update_url_from_domain_constant ( ) |
Called after wp-config.php is eval'd, to potentially reset --url |
|
run_alias_group ( $aliases ) |
|
|
run_ssh_command ( $ssh ) |
Perform a command against a remote server over SSH |
|
set_alias ( $alias ) |
|
|
set_wp_root ( string $path ) |
Set WordPress root as a given path. |
|
setup_bootstrap_hooks ( ) |
Set up hooks meant to run during the WordPress bootstrap process |
|
setup_skip_plugins_filters ( ) |
Set up the filters to skip the loaded plugins |
|
wp_exists ( ) : boolean |
Do WordPress core files exist? |
|