WordPress Help
Official documentation, learning resources, and contributor guides collected from WordPress.org.
-
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-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 suggest improvements, please…
-
Given an empty cache
Clears 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/ 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,…
-
Given /^a WP multisite (subdirectory|subdomain)?s?(install|installation)$/
Installs WordPress MultisiteMultisite Multisite is a WordPress feature which allows users to create a network of sites on a single WordPress installation. Available since WordPress version 3.0, Multisite is a continuation of WPMU or WordPress Multiuser project. WordPress MultiUser project was discontinued and its features were included into WordPress core. Advanced Administration Handbook -> Create…
-
Given /^a WP( d[^s]+)? install(?:ation)?$/
Installs WordPress. Usage Scenario: My example scenario Given a WP installation … Scenario: My other scenario Given a WP install … Scenario: My version-specific scenario Given a WP 6.4.2 installation … 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…
-
Given /^that HTTP requests to (.*?) will respond with:$/
Mock HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. requests to a given URLURL A specific web address…
-
Given /^save the (.+) file ([’].+[^’])?as {(w+)}$/
Stores the contents of the given file in a variable. Usage Scenario: My example scenario Given a WP installation with Composer And save the {RUN_DIR}/composer.json file as {COMPOSER_JSON} 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.…
-
Given /^save (STDOUT|STDERR) ([’].+[^’])?s?as {(w+)}$/
Store STDOUT or STDERR contents in a variable. Usage Scenario: My example scenario When I run `wp package path` Then save STDOUT as {PACKAGE_PATH} Scenario: My other scenario When I run `wp core download` Then save STDOUT ‘Downloading WordPress ([\d\.]+)’ as {VERSION} Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line…
-
Given /^"([^"]+)" replaced with "([^"]+)" in the ([^s]+) file$/
Search and replace a string in a file using regex. Usage Scenario: My example scenario Given “Foo” replaced with “Bar” in the readme.html file … 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…
-
Given download:
Download multiple files into the given destinations. Usage Scenario: My example scenario Given download: | path | url | | {CACHE_DIR}/foo.jpg | https://example.com/foo.jpg | | {CACHE_DIR}/bar.png | https://example.com/another-image.png | 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…
-
Then /^an email should (be sent|not be sent)$/
Expect an email to be sent (or not). Usage Scenario: My example scenario When I run `wp user reset-password 1` Then an email should be sent 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…