{"id":105197,"date":"2019-06-21T07:51:49","date_gmt":"2019-06-21T07:51:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-console\/"},"modified":"2025-11-08T09:02:36","modified_gmt":"2025-11-08T09:02:36","slug":"wp-console","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/wp-console\/","author":14476248,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.6.0","stable_tag":"2.6.0","tested":"6.9.4","requires":"5.3.12","requires_php":"7.4","requires_plugins":null,"header_name":"WP Console","header_author":"Edi Amin","header_description":"WordPress PHP Console powered by PsySH","assets_banners_color":"989899","last_updated":"2025-11-08 09:02:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/ediamin\/wp-console","header_author_uri":"https:\/\/github.com\/ediamin","rating":5,"author_block_rating":0,"active_installs":20000,"downloads":1907735,"num_ratings":20,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":{"2.4.0":{"tag":"2.4.0","author":"ediamin","date":"2023-08-09 08:23:45"},"2.4.1":{"tag":"2.4.1","author":"ediamin","date":"2023-11-13 12:21:14"},"2.5.0":{"tag":"2.5.0","author":"ediamin","date":"2024-11-17 01:47:00"},"2.5.1":{"tag":"2.5.1","author":"ediamin","date":"2025-05-24 04:38:28"},"2.6.0":{"tag":"2.6.0","author":"ediamin","date":"2025-11-08 09:02:36"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":20},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2397221,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2397221,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2397221,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2397221,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.4.0","2.4.1","2.5.0","2.5.1","2.6.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2209682,"resolution":"1","location":"assets","locale":""},"screenshot-10.png":{"filename":"screenshot-10.png","revision":2950053,"resolution":"10","location":"assets","locale":""},"screenshot-11.png":{"filename":"screenshot-11.png","revision":2950053,"resolution":"11","location":"assets","locale":""},"screenshot-12.png":{"filename":"screenshot-12.png","revision":2950053,"resolution":"12","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2950053,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2950053,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2950053,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2950053,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2950053,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2950053,"resolution":"7","location":"assets","locale":""},"screenshot-8.png":{"filename":"screenshot-8.png","revision":2950053,"resolution":"8","location":"assets","locale":""},"screenshot-9.png":{"filename":"screenshot-9.png","revision":2950053,"resolution":"9","location":"assets","locale":""}},"screenshots":{"1":"Basic input output","2":"How to open the browser console","3":"_dump command","4":"Vertical splitted window","5":"Live Autocompletion","6":"Autocompletion with placeholder","7":"Display errors","8":"wp shell command","9":"Get debug.log contents","10":"Clear debug.log","11":"Add\/Edit custom snippets","12":"Custom snippets in action"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3226,1127,10700,173063,27357],"plugin_category":[],"plugin_contributors":[130729],"plugin_business_model":[],"class_list":["post-105197","plugin","type-plugin","status-publish","hentry","plugin_tags-autocomplete","plugin_tags-browser","plugin_tags-dump","plugin_tags-repl","plugin_tags-shell","plugin_contributors-ediamin","plugin_committers-ediamin"],"banners":{"banner":"https:\/\/ps.w.org\/wp-console\/assets\/banner-772x250.png?rev=2397221","banner_2x":"https:\/\/ps.w.org\/wp-console\/assets\/banner-1544x500.png?rev=2397221","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-console\/assets\/icon-128x128.png?rev=2397221","icon_2x":"https:\/\/ps.w.org\/wp-console\/assets\/icon-256x256.png?rev=2397221","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-1.png?rev=2209682","caption":"Basic input output"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-2.png?rev=2950053","caption":"How to open the browser console"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-3.png?rev=2950053","caption":"_dump command"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-4.png?rev=2950053","caption":"Vertical splitted window"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-5.png?rev=2950053","caption":"Live Autocompletion"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-6.png?rev=2950053","caption":"Autocompletion with placeholder"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-7.png?rev=2950053","caption":"Display errors"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-8.png?rev=2950053","caption":"wp shell command"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-9.png?rev=2950053","caption":"Get debug.log contents"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-10.png?rev=2950053","caption":"Clear debug.log"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-11.png?rev=2950053","caption":"Add\/Edit custom snippets"},{"src":"https:\/\/ps.w.org\/wp-console\/assets\/screenshot-12.png?rev=2950053","caption":"Custom snippets in action"}],"raw_content":"<!--section=description-->\n<p>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).<\/p>\n\n<p>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.<\/p>\n\n<p>Moreover, you have the option to employ PsySH alongside wp-cli by executing the command <code>wp shell<\/code>. Notably, wp-cli comes with inherent compatibility for psysh. All that is required is the activation of WP Console to leverage this feature.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Powerful code editor powered by Ace Editor.<\/li>\n<li>Real-time autocompletion for PHP core and WordPress functions, complete with placeholders.<\/li>\n<li>Introducing <code>_dump<\/code> as a more versatile alternative to <code>var_dump<\/code>, leveraging the capabilities of Symfony VarDumper.<\/li>\n<li>Instant access to debug.log contents, with the added convenience of clearing them directly from your browser.<\/li>\n<li>Enhanced shell experience courtesy of psySH, facilitating advanced interaction through <code>wp shell<\/code>.<\/li>\n<li>Customizable code snippet functionality, compatible with VS Code supported code snippets. Explore examples like these <a href=\"https:\/\/github.com\/claudiosanches\/vscode-woocommerce\/blob\/master\/snippets\/functions.json\">WooCommerce snippets<\/a>.<\/li>\n<\/ul>\n\n<p>Please note that certain PsySH commands, such as <code>ls<\/code>, <code>doc<\/code>, <code>show<\/code>, and magic variables like <code>$_<\/code>, <code>$__class<\/code>, are not currently supported in the browser console.<\/p>\n\n<p>\ud83d\udc49 WP Console uses Gutenberg packages and components to ensure a seamless and user-friendly UI\/UX.<\/p>\n\n<h3>Getting Started<\/h3>\n\n<p>To begin using the plugin, follow these steps:<\/p>\n\n<ol>\n<li>Activate the plugin within your WordPress setup.<\/li>\n<li>Look for a quick link labeled \"Console\" in the WP Admin Bar on the right-hand side (see the second screenshot below).<\/li>\n<li>Click on the \"Console\" link to access the WP Console panel.<\/li>\n<\/ol>\n\n<h3>Security Concern<\/h3>\n\n<p>WP Console explicitly verifies the presence of the <code>manage_options<\/code> 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.<\/p>\n\n<h3>Other Plugin<\/h3>\n\n<p>Working with the block or the block editor? Checkout <a href=\"https:\/\/wordpress.org\/plugins\/css-class-manager\/\">CSS Class Manager<\/a> \u2013 An advanced autocomplete additional css class control for your blocks.<\/p>\n\n<!--section=changelog-->\n<p>2.6.0 - November 08, 2025\n* Added support for PHP 8.4.<\/p>\n\n<p>2.5.1 - January 13, 2025\n* Prevent HTML rendering in console output.<\/p>\n\n<p>2.5.0 - November 17, 2024\n* Breaking: Dropped support for PHP 5.6. The minimum PHP requirement is now 7.4.\n* Refactored the dependency loading process for improved performance and maintainability.\n* Fixed namespace compatibility issues for PHP 8.1+.\n* Resolved deprecation warnings in recent WordPress versions.<\/p>\n\n<p>2.4.1 - November 13, 2023\n* Fix deprecation notice in PHP 8.2 related to strtolower argument type.\n* Add an admin submenu under the tools menu to open the console window.\n* Update WordPress compatibility to the latest version 6.4.2.<\/p>\n\n<p>2.4.0 - August 09, 2023\n* Add support for PHP 8.0+.\n* Update Ace Editor version to 1.23.4.<\/p>\n\n<p>2.3.1 - July 31, 2022\n* Update script version of ace.<\/p>\n\n<p>2.3.0 - July 27, 2022\n* Add code execution time in console output panel.\n* Use ace.js with custom namespace to avoid conflict with other ace.js source.\n* Fix snippet manager module style.\n* Use verticle split as default in console panel.\n* Fix error handling for PHP v5.6.\n* Fix some UI issues in different WordPress versions.\n* Add wp-env and e2e testing with Jest using wp-scripts for developing the plugin.<\/p>\n\n<p>2.2.0 - November 22, 2020\n* Add custom code snippet support. You can use VS Code supported PHP code snippets now.\n* Add Copy Output button.\n* Enqueue scripts only for manage_options capability owners.\n* Improve handling uncaught fatal errors.\n* Add Twenty Twenty theme compatibility.\n* Set default values for user Console settings in REST API.\n* Fix horizontal output scolling issue for vertically split console.\n* Fix close button get disappear in WooCommerce admin pages.\n* Fix error line no in console editor.<\/p>\n\n<p>2.1.0 - April 14, 2020\n* Lazy load React components to improve performance.\n* Use a single store source for all components.\n* Reset console responses after close app window.\n* Fix navigation button icon css for WP v5.4.\n* Resize editor screen after toggle split mode.<\/p>\n\n<p>2.0.0 - December 11, 2019\n* Revamp UI\/UX.\n* Add Ace editor as code editor plugin. Remove CodeMirror.\n* Live autocompletion with placeholders.\n* Option to vertically split editor and output window.\n* Add ability to clear debug.log.\n* Restrict plugin UI and REST APIs for users who have manage_options capability.<\/p>\n\n<p>1.5.0 - November 07, 2019\n* Tweak - Change <code>dump<\/code> function name to <code>_dump<\/code> to resolve conflict with wp-erp.<\/p>\n\n<p>1.4.0 - November 02, 2019\n* New - Save code editor history in localStorage.\n* Tweak - Use wp-scripts for assets build process.<\/p>\n\n<p>1.3.0 - October 26, 2019\n* New - Fetch debug.log contents.\n* Tweak - Support PHP version 5.6.<\/p>\n\n<p>1.2.0 - July 27, 2019\n* New - Add autocompletion data(WP functions, PHP booleans, constants, functions, keywords).\n* New - Add codemirror closebrackets, matchbrackets addon scripts.\n* New - Show error stacktrace.<\/p>\n\n<p>1.1.0 - June 25, 2019\n* New - Use output buffer handler.\n* New - Add build process.\n* Tweak - Remove unnecessary code.<\/p>\n\n<p>1.0.0 - June 21, 2019\nInitial release.<\/p>","raw_excerpt":"An in-browser PHP console for WordPress powered by PsySH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/105197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=105197"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ediamin"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=105197"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=105197"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=105197"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=105197"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=105197"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=105197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}