Title: WP Console &#8211; WordPress PHP Console powered by PsySH
Author: Edi Amin
Published: <strong>June 21, 2019</strong>
Last modified: November 8, 2025

---

Search plugins

![](https://ps.w.org/wp-console/assets/banner-772x250.png?rev=2397221)

![](https://ps.w.org/wp-console/assets/icon-256x256.png?rev=2397221)

# WP Console – WordPress PHP Console powered by PsySH

 By [Edi Amin](https://profiles.wordpress.org/ediamin/)

[Download](https://downloads.wordpress.org/plugin/wp-console.2.6.0.zip)

 * [Details](https://twd.wordpress.org/plugins/wp-console/#description)
 * [Reviews](https://twd.wordpress.org/plugins/wp-console/#reviews)
 * [Development](https://twd.wordpress.org/plugins/wp-console/#developers)

 [Support](https://wordpress.org/support/plugin/wp-console/)

## Description

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.

### Features

 * Powerful code editor powered by Ace Editor.
 * Real-time autocompletion for PHP core and WordPress functions, complete with 
   placeholders.
 * Introducing `_dump` as a more versatile alternative to `var_dump`, leveraging
   the capabilities of Symfony VarDumper.
 * Instant access to debug.log contents, with the added convenience of clearing 
   them directly from your browser.
 * Enhanced shell experience courtesy of psySH, facilitating advanced interaction
   through `wp shell`.
 * Customizable code snippet functionality, compatible with VS Code supported code
   snippets. Explore examples like these [WooCommerce snippets](https://github.com/claudiosanches/vscode-woocommerce/blob/master/snippets/functions.json).

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.

### Getting Started

To begin using the plugin, follow these steps:

 1. Activate the plugin within your WordPress setup.
 2. Look for a quick link labeled “Console” in the WP Admin Bar on the right-hand side(
    see the second screenshot below).
 3. Click on the “Console” link to access the WP Console panel.

### Security Concern

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.

### Other Plugin

Working with the block or the block editor? Checkout [CSS Class Manager](https://wordpress.org/plugins/css-class-manager/)–
An advanced autocomplete additional css class control for your blocks.

## Screenshots

 * [[
 * Basic input output
 * [[
 * How to open the browser console
 * [[
 * _dump command
 * [[
 * Vertical splitted window
 * [[
 * Live Autocompletion
 * [[
 * Autocompletion with placeholder
 * [[
 * Display errors
 * [[
 * wp shell command
 * [[
 * Get debug.log contents
 * [[
 * Clear debug.log
 * [[
 * Add/Edit custom snippets
 * [[
 * Custom snippets in action

## Reviews

![](https://secure.gravatar.com/avatar/eb86747d2a89ed92c485b40cf34083660311a8da46098cd2a85da2e55ff100b9?
s=60&d=retro&r=g)

### 󠀁[An essential dev tool](https://wordpress.org/support/topic/an-essential-dev-tool/)󠁿

 [Barrett Golding](https://profiles.wordpress.org/hearvox/) November 8, 2025

WP Console is an essential tool for quickly testing code and getting data about 
a site’s posts, post meta, and taxonomies. Plus, the author’s attention of bug-fixes
is heroic.

![](https://secure.gravatar.com/avatar/4bded0992328049c0a0982d21a36ac16b1602aa3a60fae48b66757f77a45a0de?
s=60&d=retro&r=g)

### 󠀁[Can not think of any WP site without it](https://wordpress.org/support/topic/can-not-think-of-any-wp-site-without-it/)󠁿

 [Kapil Paul](https://profiles.wordpress.org/kapilpaul/) November 27, 2023

Thanks for this awesome plugin. this helps a lot in debugging. Can not even think
of any WP site without it. Keep up the good work.

![](https://secure.gravatar.com/avatar/f0a43d4da223b8274c1640be52e96955d08d97795544663271949159611980f9?
s=60&d=retro&r=g)

### 󠀁[Perfect tool for developers.](https://wordpress.org/support/topic/perfect-tool-for-developers/)󠁿

 [Abul hasan Aunshon](https://profiles.wordpress.org/aunshon/) November 16, 2023

Wp console is the perfect tool for developers. Debugging sites, manipulate data 
on database. Almost like anything a developer can do on local setup.

![](https://secure.gravatar.com/avatar/ff9241f3ee1e25a0a016399ff1ae829fea13ed7493c62627ac5068ae61c39197?
s=60&d=retro&r=g)

### 󠀁[Excellent!!!](https://wordpress.org/support/topic/excellent-13039/)󠁿

 [Andy Navarro](https://profiles.wordpress.org/andaniel05/) October 18, 2023

I love this plugin

![](https://secure.gravatar.com/avatar/2f0db1fdc3e4b8ccfebde9c14ce25049cb26598009a684ad62a276823a6dd9ca?
s=60&d=retro&r=g)

### 󠀁[Top tier plugin](https://wordpress.org/support/topic/top-tier-plugin-19/)󠁿

 [Radoš](https://profiles.wordpress.org/rados51/) September 28, 2023

I can’t imagine debugging without WP Console.

![](https://secure.gravatar.com/avatar/ccc4277c4312717c715f85f2cae821942a36c19fca7191c0754fc34c4a3372ab?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-15791/)󠁿

 [maven1129](https://profiles.wordpress.org/maven1129/) August 22, 2023

Thank you for building this. WPCodeBox, for example, doesnt have a way of testing
output of code. They claim to, but it doesnt work. This does!

 [ Read all 20 reviews ](https://wordpress.org/support/plugin/wp-console/reviews/)

## Contributors & Developers

“WP Console – WordPress PHP Console powered by PsySH” is open source software. The
following people have contributed to this plugin.

Contributors

 *   [ Edi Amin ](https://profiles.wordpress.org/ediamin/)

[Translate “WP Console – WordPress PHP Console powered by PsySH” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-console)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-console/), check
out the [SVN repository](https://plugins.svn.wordpress.org/wp-console/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/wp-console/) by 
[RSS](https://plugins.trac.wordpress.org/log/wp-console/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

2.6.0 – November 08, 2025
 * Added support for PHP 8.4.

2.5.1 – January 13, 2025
 * Prevent HTML rendering in console output.

2.5.0 – November 17, 2024
 * Breaking: Dropped support for PHP 5.6. The minimum 
PHP requirement is now 7.4. * Refactored the dependency loading process for improved
performance and maintainability. * Fixed namespace compatibility issues for PHP 
8.1+. * Resolved deprecation warnings in recent WordPress versions.

2.4.1 – November 13, 2023
 * Fix deprecation notice in PHP 8.2 related to strtolower
argument type. * Add an admin submenu under the tools menu to open the console window.*
Update WordPress compatibility to the latest version 6.4.2.

2.4.0 – August 09, 2023
 * Add support for PHP 8.0+. * Update Ace Editor version
to 1.23.4.

2.3.1 – July 31, 2022
 * Update script version of ace.

2.3.0 – July 27, 2022
 * Add code execution time in console output panel. * Use 
ace.js with custom namespace to avoid conflict with other ace.js source. * Fix snippet
manager module style. * Use verticle split as default in console panel. * Fix error
handling for PHP v5.6. * Fix some UI issues in different WordPress versions. * Add
wp-env and e2e testing with Jest using wp-scripts for developing the plugin.

2.2.0 – November 22, 2020
 * Add custom code snippet support. You can use VS Code
supported PHP code snippets now. * Add Copy Output button. * Enqueue scripts only
for manage_options capability owners. * Improve handling uncaught fatal errors. *
Add Twenty Twenty theme compatibility. * Set default values for user Console settings
in REST API. * Fix horizontal output scolling issue for vertically split console.*
Fix close button get disappear in WooCommerce admin pages. * Fix error line no in
console editor.

2.1.0 – April 14, 2020
 * Lazy load React components to improve performance. * Use
a single store source for all components. * Reset console responses after close 
app window. * Fix navigation button icon css for WP v5.4. * Resize editor screen
after toggle split mode.

2.0.0 – December 11, 2019
 * Revamp UI/UX. * Add Ace editor as code editor plugin.
Remove CodeMirror. * Live autocompletion with placeholders. * Option to vertically
split editor and output window. * Add ability to clear debug.log. * Restrict plugin
UI and REST APIs for users who have manage_options capability.

1.5.0 – November 07, 2019
 * Tweak – Change `dump` function name to `_dump` to resolve
conflict with wp-erp.

1.4.0 – November 02, 2019
 * New – Save code editor history in localStorage. * Tweak–
Use wp-scripts for assets build process.

1.3.0 – October 26, 2019
 * New – Fetch debug.log contents. * Tweak – Support PHP
version 5.6.

1.2.0 – July 27, 2019
 * New – Add autocompletion data(WP functions, PHP booleans,
constants, functions, keywords). * New – Add codemirror closebrackets, matchbrackets
addon scripts. * New – Show error stacktrace.

1.1.0 – June 25, 2019
 * New – Use output buffer handler. * New – Add build process.*
Tweak – Remove unnecessary code.

1.0.0 – June 21, 2019
 Initial release.

## Meta

 *  Version **2.6.0**
 *  Last updated **5 months ago**
 *  Active installations **20,000+**
 *  WordPress version ** 5.3.12 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-console/)
 * Tags
 * [autocomplete](https://twd.wordpress.org/plugins/tags/autocomplete/)[browser](https://twd.wordpress.org/plugins/tags/browser/)
   [dump](https://twd.wordpress.org/plugins/tags/dump/)[shell](https://twd.wordpress.org/plugins/tags/shell/)
 *  [Advanced View](https://twd.wordpress.org/plugins/wp-console/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  20 5-star reviews     ](https://wordpress.org/support/plugin/wp-console/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wp-console/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wp-console/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wp-console/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wp-console/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/wp-console/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-console/reviews/)

## Contributors

 *   [ Edi Amin ](https://profiles.wordpress.org/ediamin/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-console/)