WP Console – WordPress PHP Console powered by PsySH

Por Edi Amin
(19 avaliações)
Baixar
  • Versão:
    2.5.1
  • Última atualização:
    há 11 dias
  • Instalações ativas:
    mais de 20 mil
  • Versão do WordPress:
    5.3.12 ou maior
  • Testado até o WordPress:
    6.8.1
  • Versão do PHP:
    7.4 ou maior
  • Tags:

Hospedagem WordPress com plugin WP Console – WordPress PHP Console powered by PsySH

Onde posso hospedar o plugin WP Console – WordPress PHP Console powered by PsySH?

Este plugin pode ser hospedado em qualquer servidor que tenha WordPress instalado. Recomendamos fortemente escolher um provedor de hospedagem seguro, com servidores otimizados para WordPress, como o serviço de hospedagem de sites da MCO2.

Hospedando o plugin WP Console – WordPress PHP Console powered by PsySH em um provedor de confiança

A MCO2, além de configurar e instalar o WordPress na versão mais nova para seus clientes, fornece o plugin WP SafePress, um sistema exclusivo que salvaguarda e otimiza seu site simultaneamente.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização de imagens, proteção da página de login, bloqueio de atividades suspeitas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

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.

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 – An advanced autocomplete additional css class control for your blocks.

Capturas de tela

Basic input output

Basic input output

How to open the browser console

How to open the browser console

_dump command

_dump command

Vertical splitted window

Vertical splitted window

Live Autocompletion

Live Autocompletion

Autocompletion with placeholder

Autocompletion with placeholder

Display errors

Display errors

wp shell command

wp shell command

Get debug.log contents

Get debug.log contents

Clear debug.log

Clear debug.log

Add/Edit custom snippets

Add/Edit custom snippets

Custom snippets in action

Custom snippets in action