WordPress Help
Official documentation, learning resources, and contributor guides collected from WordPress.org.
-
WP_CLI::run_command()
Run a given command within the current process using the same global parameters. Usage WP_CLI::run_command( $args, $assoc_args = [] ) $args (array) Positional arguments including command name. $assoc_args (array) Notes Use WP_CLI::runcommand() instead, which is easier to use and works better. To run a command using a new process with the same global parameters, use…
-
WP_CLI::read_value()
Read a value, from various formats. Usage WP_CLI::read_value( $raw_value, $assoc_args = [] ) $raw_value (string) $assoc_args (array) Internal APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways. documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command…
-
WP_CLI::log()
Display informational message without prefix. Usage WP_CLI::log( $message ) $message (string) Message to write to STDOUT. Notes Message is written to STDOUT, or discarded when –quiet flag is supplied. # `wp cli update` lets user know of each step in the update process. WP_CLI::log( sprintf( ‘Downloading from %s…’, $download_url ) ); Internal APIAPI An API…
-
WP_CLI::line()
Display informational message without prefix, and ignore –quiet. Usage WP_CLI::line( $message = ” ) $message (string) Message to display to the end user. @return (void) Notes Message is written to STDOUT. WP_CLI::log() is typically recommended; WP_CLI::line() is included for historical compat. Internal APIAPI An API or Application Programming Interface is a software intermediary that allows…
-
WP_CLI::launch()
Launch an arbitrary external process that takes over I/O. Usage WP_CLI::launch( $command, $exit_on_error = true, $return_detailed = false ) $command (string) External process to launch. $exit_on_error (boolean) Whether to exit if the command returns an elevated return code. $return_detailed (boolean) Whether to return an exit status (default) or detailed execution results. @return (int|ProcessRun) command exit…
-
WP_CLI::launch_self()
Run a WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/ https://make.wordpress.org/cli/ command in a new process reusing the current runtime arguments. Usage WP_CLI::launch_self( $command, $args = [], $assoc_args = [], $exit_on_error = true, $return_detailed = false, $runtime_args =…
-
WP_CLI::has_config()
Confirm that a global configuration parameter does exist. Usage WP_CLI::has_config( $key ) $key (string) Config parameter key to check. @return (bool) Internal APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways. documentation is generated from the WP-CLIWP-CLI…
-
WP_CLIUtilsbasename()
Locale-independent version of basename() Usage WP_CLI\Utils\basename( $path, $suffix = ” ) $path (string) $suffix (string) @return (string) Internal APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways. documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command…
-
Руководство по устранению неполадок
Прежде чем начать сообщать о новой проблеме в репозитории GitHubGitHub GitHub — это веб-сайт, предлагающий онлайн-размещение репозиториев git, которыми другие разработчики могут легко делиться, копировать и изменять. Публичные репозитории размещаются бесплатно, для частных репозиториев требуется платная подписка. GitHub представил концепцию «pull request», при которой изменения кода, выполненные участниками в ветках, могут быть проверены и обсуждены…
-
Panduan Pemecahan Masalah
Sebelum mulai melaporkan masalah baru di repositori GitHubGitHub GitHub adalah situs web yang menawarkan implementasi daring repositori git yang dapat dengan mudah dibagikan, disalin, dan dimodifikasi oleh pengembang lain. Repositori publik dapat dihosting secara gratis, sedangkan repositori privat memerlukan langganan berbayar. GitHub memperkenalkan konsep ‘pull request’, yaitu perubahan kode yang dibuat di cabang oleh kontributor…