Description
At a glance
PHP Code Widget v2.4 — free WordPress plugin download. Key facts: 70K+ active installs · 4.7/5 rating from 61 reviews · updated March 30, 2022 · requires WordPress 2.8+.
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.
Frequently asked questions
What is PHP Code Widget?
PHP Code Widget is a free WordPress plugin available under the GPL license. The current version is 2.4. It is active on over 70K websites.
Is PHP Code Widget free to download?
Yes — PHP Code Widget 2.4 is a free GPL download with no hidden fees, no account needed, and no feature locked behind a paywall in this package. Users rate it 4.7 out of 5 based on 61 reviews.
How do I install PHP Code Widget 2.4?
Download the ZIP file from this page, then in your WordPress dashboard go to Plugins → Add New → Upload Plugin, choose the file, click Install Now, then Activate. The plugin works immediately after activation — no license key or extra setup is required for the core features.
What are the requirements for PHP Code Widget?
PHP Code Widget 2.4 requires WordPress 2.8 or higher. Most modern WordPress hosts already meet these versions. Running older versions may cause features to break, so update WordPress and PHP first if your site is behind.
When was PHP Code Widget last updated?
Version 2.4 was last updated on March 30, 2022. This page is refreshed automatically, so the download here always matches the newest version we have verified.
Is the PHP Code Widget download safe?
The file is sourced directly from the official WordPress.org repository — the same file the developer published. It is served unmodified, so what you install here is byte-identical to the official release.
Technical details
| Version | 2.4 |
|---|---|
| Last updated | March 30, 2022 |
| Active installs | 70,000+ |
| Rating | ★★★★★ 4.7/5 (61 reviews) |
| Requires WordPress | 2.8 or higher |
| Author | Samuel Wood (Otto) |
| Tags | execphp, php, widget |
Download PHP Code Widget
Download PHP Code Widget WP PluginNote: if the download does not start, disable your ad blocker and try again.