wp eval-file

Load and execute a PHP file.

GitHub Issues


The path to the PHP file to execute.
One or more arguments to pass to the file. They are placed in the $args variable.
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.