Code widget help to add Short Code, PHP Code, HTML, and Simple Text in widget.
As of April 2026, Code Widget is a WordPress php plugin with 4.0K+ active installations and a 4.9/5 rating from 35 reviews. It has been downloaded 60K+ times in total. Requires WordPress 4.0+ and PHP 7.0+. Available on WordPress.org since 2018. Last updated 3 years ago — may have compatibility concerns. Downloads are down 8% this week. Top alternative: WPCode – Insert Headers and Footers +….
Code Widget is simple widget allows you to insert any arbitrary Text/HTML and run PHP Code or Short Code. This Widget parses PHP code into simple text and much more.
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.
This plugin is developed and maintained by Sharaz Shahid
I’ve been using Code Widget for over a year on https://www.vrvoyaging.com and I love how easy it is to put PHP, HTML, or a shortcode into a page block without fussing with custom widgets. Highly recommended!
I switched from Drupal 7 to WordPress and this is exactly what I needed to spice up the widgets – in Drupal I used something similar for blocks.
It works fine. Thank you!
There are NO instructions.
There is NO place to create the code…..
Useless.
Easy to use and it works perfectly.
| WordPress | 4.0+ requiredTested up to 6.1.0 |
| PHP | 7.0+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.