Code to Widget

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

Author:Sean Klein (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:3.4.2
Plugin version:1.2
Added to WordPress repository:24-05-2010
Last updated:02-01-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://seanklein.org
Total downloads:2 765
Active installs:10+
plugin download
Click to start download

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:

<?php
/*
Widget Name: Test Widget 1
Widget Description: Test 1 widget
*/
?>

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.


FAQ
ChangeLog