andreascreten/wp-cli — Issue #41: wp eval
Author: scribu
Created: 2011-11-10 19:20:33+00:00
State: open
Labels: feature

I find myself wanting to get the value of a constant or call some function. Instead of writing dedicated subcommands, why not just pass PHP directly?

Examples:

```
wp eval 'echo WP_CONTENT_DIR;'

wp eval-file some-file.php
```