WordPress Help
Official documentation, learning resources, and contributor guides collected from WordPress.org.
-
Given an empty cache
Clears the WP-CLI cache directory. Usage Scenario: My example scenario Given an empty cache … Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request. Related Given an empty directory – Creates an empty directory. Given /^an? (empty|non-existent) ([^\s]+) directory$/ – Creates or deletes a…
-
Given an empty directory
Creates an empty directory. Usage Scenario: My example scenario Given an empty directory … Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request. Related Given /^an? (empty|non-existent) ([^\s]+) directory$/ – Creates or deletes a specific directory. Given an empty cache – Clears the WP-CLI…
-
Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/
Download a specific WP-CLI Phar version from GitHub. Usage Scenario: My example scenario Given an empty directory And a downloaded Phar with version “2.11.0” Scenario: My other scenario Given an empty directory And a downloaded Phar with the same version Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements,…
-
Given a misconfigured WP_CONTENT_DIR constant directory
Modify wp-config.php to set WP_CONTENT_DIR to an empty string. Usage Scenario: My example scenario Given a WP install And a misconfigured WP_CONTENT_DIR constant directory Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request. Related Given an empty directory – Creates an empty directory. Given…
-
Given /^a new Phar with (?:the same version|version "([^"]+)")$/
Build a new WP-CLI Phar file with a given version. Usage Scenario: My example scenario Given an empty directory And a new Phar with version “2.11.0” Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request. Related Given an empty directory – Creates an empty…
-
Given a WP install(ation) in :subdir
Installs WordPress in a given directory. Usage Scenario: My example scenario Given a WP installation in ‘foo’ … Scenario: My other scenario Given a WP install in ‘bar’ … Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request. Related Given an empty directory –…
-
Given a PHP built-in web server to serve :subdir
Start a PHP built-in web server in the given subdirectory. Usage Scenario: My example scenario Given a WP installation And a PHP built-in web server to serve ‘WordPress’ Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request. Related Given an empty directory – Creates…
-
Given a PHP built-in web server
Start a PHP built-in web server in the current directory. Usage Scenario: My example scenario Given a WP installation And a PHP built-in web server Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request. Related Given an empty directory – Creates an empty directory.…
-
Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory
Installs WordPress with Composer and a custom vendor directory. Usage Scenario: My example scenario Given a WP installation with Composer and a custom vendor directory ‘vendor-custom’ … Scenario: My other scenario Given a WP install with Composer with Composer and a custom vendor directory ‘vendor-custom’ … Behat steps documentation is generated from the WP-CLI codebase…
-
Given a WP install(ation) with Composer
Installs WordPress with Composer. Usage Scenario: My example scenario Given a WP installation with Composer … Scenario: My other scenario Given a WP install with Composer … Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request. Related Given an empty directory – Creates an…