WP-CLI - Interactive PHP Console

# Enter PHP Shell wp shell # Add PHP wp> add_action('shutdown', function(){ echo 'DANG!'; } ); : ' bool(true) ' # exit wp> exit : ' DANG! '
http://wp-cli.org/commands/shell/ - wp shell allows you to evaluate PHP statements and expressions interactively, from within a WordPress environment. This means that you have access to all the functions, classes and globals that you would have access to from inside a WordPress plugin, for example.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.