Created by: Edi Amin
WP Console brings the renowned PsySH directly to your browser. PsySH serves as a runtime developer console, an interactive debugger, and a PHP REPL (Read-Eval-Print Loop).
To utilize WP Console, simply write your code within the code editor, then press Cmd-Enter (mac) or Ctrl-Enter (win/linux) to instantly view the output in your browser.
Moreover, you have the option to employ PsySH alongside wp-cli by executing the command wp shell
. Notably, wp-cli comes with inherent compatibility for psysh. All that is required is the activation of WP Console to leverage this feature.
_dump
as a more versatile alternative to var_dump
, leveraging the capabilities of Symfony VarDumper.wp shell
.Please note that certain PsySH commands, such as ls
, doc
, show
, and magic variables like $_
, $__class
, are not currently supported in the browser console.
👉 WP Console uses Gutenberg packages and components to ensure a seamless and user-friendly UI/UX.
To begin using the plugin, follow these steps:
WP Console explicitly verifies the presence of the manage_options
permission to render the user interface and execute various functions. However, it’s important to note that this plugin is not intended for use on a production server.