Return to Snippet

Revision: 48584
at July 5, 2011 19:40 by xavsio4


Initial Code
class My_Widget extends WP_Widget {
    function My_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_Widget');

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress Widget Structure

Initial Tags
wordpress

Initial Language
PHP