Return to Snippet

Revision: 22838
at January 23, 2010 22:26 by chrisdpratt


Initial Code
class My_RSS_Widget extends WP_Widget {
    function My_RSS_Widget() {
        //Constructor
    }
 
    function widget($args, $instance) {
        // prints the widget
    }
 
    function update($new_instance, $old_instance) {
        //save the widget
    }

    function form($instance) {
        //widgetform in backend
    }
}
register_widget('My_RSS_Widget');

Initial URL
http://wpengineer.com/wordpress-built-a-widget/

Initial Description
Full example widget available at [WP Engineer](http://wpengineer.com/wordpress-built-a-widget/ "Build A WordPress 2.8 Widget With The New Widget API").

Initial Title
Create a Wordpress 2.8+ Widget

Initial Tags
template, wordpress

Initial Language
PHP