Home Plugins code to widget
Code to Widget logo

Code to Widget

by Sean Klein on WordPress.org

Code to Widget Plugin uses PHP files from a specified directory, and (if the file has the proper template tags) adds a Widget.

(0)

Code to Widget Plugin uses PHP files from a specified directory, and (if the file has the proper template tags) adds a Widget.

Details

Code to Widget provides an easy way to create widgets, without having to deal with writing the widget class everytime

Configuration

The plugin provides an interface for selecting a specific folder to search for widgets in. The folder path entered into the settings page must be an absolute path. Then the widgets are easily configurable similar to all other widgets.

The files in the specified folder need to have specific template tags to be added as widgets. The following code will need to be added to the top of the files:


A “Widget Title:” field can also be added. That title will be set as the default widget title when the file is selected on the widget settings screen.

Active installations10+
Weekly downloads
7-30.00%
Version1.2
Last updated1/2/2012
WordPress version3.0
Tested up to3.4.2
Tags
codephpwidget