Add WP_CLI_REQUIRE env var for including extra php files by mrsdizzie · Pull Request #6070 · wp-cli/wp-cli
As a companion to WP_CLI_EARLY_REQUIRE but doesn't include the files until after wp has been through the boostrap process. This is the same as using `--require` from the command line, or require in a yaml config file. The purpose for another way of requiring a file is for use in codecov testing, where it otherwise is not practical to conditionally including a php file at normal runtime using the existing methods in a testing environment.
This was referenced
Mar 18, 2025This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters