wp eval-file

Load and execute a PHP file.

GitHub Issues

OPTIONS

<file>
The path to the PHP file to execute.
[<arg>…]
One or more arguments to pass to the file. They are placed in the $args variable.
[--skip-wordpress]
Load and execute file without loading WordPress.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.