PHP Code Widget
The normal Text widget allows you to insert arbitrary Text and/or HTML code. This allows that too, but also parses any PHP code in the text widget and executes it.
Use com cautela
PHP Code Widget works, but test it on a staging site before relying on it in 2026. It runs on 70K+ sites, is rated 4.7/5 and was last updated 5 years ago, and scores 47/100 on our health check.
- Comprovado em escala em mais de 70 mil sites ativos
- Loved by users — 4.7/5 from 61 reviews
- Nenhuma atualização em 4 anos
- Testado apenas até WordPress 5.9 (mais recente é 7.1)
Downloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where PHP Code Widget stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| execphp | #1 |
| php | >100 |
| widget | >100 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★★★★★★ 4.7 from 61 reviews
About PHP Code Widget
From the official readme · v2.4Descrição
The normal Text widget allows you to insert arbitrary Text and/or HTML code. This allows that too, but also parses any PHP code in the text widget and executes it.
This can make it easier to migrate to a widget-based theme. However, this plugin should not be used long term, as anybody with access to edit the widgets on your site will be able to execute arbitrary PHP code.
All PHP code must be enclosed in the standard php opening and closing tags ( <?php and ?> ) for it to be recognized and executed.
Only users with the unfiltered_html role will be allowed to insert unfiltered HTML. This includes PHP code, so users without admin or editor permissions will not be able to use this to execute code, even if they have widget editing permissions.
Log de Changes
2.4
- After much demand, made it stop throwing a warning in PHP 8. Please consider ceasing usage of this widget on modern sites. Switch to block based themes, or use purpose specific plugins to solve your needs instead of storing PHP code in the database.
2.3
- Changed the call to WP_Widget to use the PHP 5 __construct() method. Ref: https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/
2.2
- Translation fixes for WP 3.7
- Remove donation link
2.1
- Fixed broken wpautop filter. Checkbox on widget works now.
2.0
- Changed widget to use new Class methods for creating widget. This simplifies the widget and should eliminate any problems with it losing code or disappearing from sidebars and so forth.
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
FAQ
PHP Code Widget: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is PHP Code Widget free?
Yes. PHP Code Widget is free to download and use from the official WordPress.org plugin directory.
Is PHP Code Widget safe to use in 2026?
PHP Code Widget works, but test it on a staging site before relying on it in 2026. It runs on 70K+ sites, is rated 4.7/5 and was last updated 5 years ago, and scores 47/100 on our health check.
How many websites use PHP Code Widget?
PHP Code Widget is active on 70K+ WordPress websites and has been downloaded 1,003,986 times since it launched in March 2008. It was downloaded 1,920 times in the last 30 days.
Does PHP Code Widget work with WordPress 7.1?
PHP Code Widget is officially tested up to WordPress 5.9.21, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was PHP Code Widget last updated?
The latest version, 2.4, was released on March 30, 2022 (5 years ago).
Who makes PHP Code Widget?
PHP Code Widget is developed and maintained by Samuel Wood (Otto).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito


