Content type: Handbook

  • 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-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…

  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/

    Build a new 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/ 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…

  • 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-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic…

  • Given a PHP built-in web server to serve :subdir

    Start a PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. https://www.php.net/manual/en/index.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…

  • Given a PHP built-in web server

    Start a PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. https://www.php.net/manual/en/index.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…

  • 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-CLIWP-CLI WP-CLI…

  • 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-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The…

  • 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…

  • 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_CLIUtilsformat_items()

    Render a collection of items as an ASCII table, JSONJSON JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML., CSV, YAML, list of ids, or count. Usage WP_CLI\Utils\format_items( $format, $items, $fields ) $format…