WordPress Help
Official documentation, learning resources, and contributor guides collected from WordPress.org.
-
Given WP files
Download WordPress files without installing. Usage Scenario: My example scenario Given an empty directory And WP files Behat steps documentation is generated from the 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/ codebase on every release. To…
-
Given wp-config.php
Create a wp-config.php file using wp config create. Usage Scenario: My example scenario Given an empty directory And WP files And wp-config.php Behat steps documentation is generated from the 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/…
-
Given these installed and active plugins:
Installs and activates one or more plugins. Usage Scenario: My example scenario Given a WP installation And these installed and active plugins: “”” akismet wordpress-importer “”” Behat steps documentation is generated from the 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…
-
Given a dependency on current wp-cli
Add wp-cli/wp-cli as a Composer dependency. Usage Scenario: My example scenario Given a WP installation with Composer And a dependency on current wp-cli Behat steps documentation is generated from the 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/…
-
Given a database
Creates an empty database. Usage Has no effect when tests run with SQLite. Scenario: My example scenario Given a database … Behat steps documentation is generated from the 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/ codebase…
-
Given a custom wp-content directory
Configure a custom wp-content directory. Usage Defines the WP_CONTENT_DIR, WP_PLUGIN_DIR, and WPMU_PLUGIN_DIR constants. Scenario: My example scenario Given a WP install And a custom wp-content directory Behat steps documentation is generated from the 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…
-
WP_CLI::warning()
Display warning message prefixed with “Warning: “. Usage WP_CLI::warning( $message ) $message (string|WP_Error|Exception|Throwable) Message to write to STDERR. @return (void) Notes Warning message is written to STDERR, or discarded when –quiet flag is supplied. Use instead of WP_CLI::debug() when script execution should be permitted to continue. # `wp plugin activate` skips activation when plugin is…
-
WP_CLIUtilswrite_csv()
Write data as CSV to a given file. Usage WP_CLI\Utils\write_csv( $fd, $rows, $headers = [] ) $fd (resource) File descriptor. $rows (array<string[]>|iterable) Array of rows to output. $headers (array<string>) List of CSV columns (optional). Internal APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and…
-
WP_CLIUtilstrailingslashit()
Appends a trailing slash. Usage WP_CLI\Utils\trailingslashit( $string ) $string (string) What to add the trailing slash to. @return (string) with trailing slash added. 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…
-
WP_CLIUtilsreport_batch_operation_results()
Report the results of the same operation against multiple resources. Usage WP_CLI\Utils\report_batch_operation_results( $noun, $verb, $total, $successes, $failures, $skips = null ) $noun (string) Resource being affected (e.g. pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new…