Plugin Directory

PHP Code Widget

Like the Text widget, but also allows working PHP code to be inserted.

Download Version 2.1

The normal Text widget allows you to insert arbitrary Text and/or HTML code. This allows that too, but also parses any inserted PHP code and executes it. This makes it easier to migrate to a widget-based theme.

All PHP code must be enclosed in the standard tags for it to be recognized.

WARNING: Upgrading to 2.0 from 1.2 may cause loss of your existing widgets. Copy the code you have in them elsewhere first, then recreate your widgets afterwards.

Want regular updates? Become a fan of my sites on Facebook! http://www.facebook.com/apps/application.php?id=116002660893 http://www.facebook.com/ottopress

Or follow my sites on Twitter! http://twitter.com/ottodestruct

Author: Otto42
Tags: , ,

Requires: 2.8 or higher
Compatible up to: 3.3.1
Last Updated: 2012-1-10 Downloads: 187,332

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(128 ratings)

Compatibility

+
=
Works!

7 people say it works.
1 person says it's broken.

Log in to vote.

100,3,3 67,3,2 100,2,2
64,11,7
100,4,4
100,10,10
82,17,14
100,1,1 100,8,8
79,33,26
100,1,1
100,1,1
85,13,11
100,2,2
100,4,4
100,4,4
100,1,1
75,4,3
100,17,17
75,4,3
88,8,7