widget create in a miniute

in wordpress you can create your widget in a simple manner, the process is so simple

given below the widget plugins name is “widget-test”. you can modified that as your need

/*
Plugin Name: widget-test
*/
##never forget this function configuration
##never forget add $before_widget,$before_title, $after_title and $after_widget
## example given below
function widget_test($args) {
extract($args);

echo $before_widget.$before_title."widget-Title".$after_title;
echo '<ul>'."n";
echo "text here";//call any function or print something that will be show in your widget contents

echo '</ul>'."n";
echo $after_widget;
//}
}

###Widget initialize function
function widget_init() {
register_sidebar_widget(__('Widget Title'), 'widget_test');
}

add_action('plugins_loaded', 'widget_init')

7 Responses to “widget create in a miniute”

  1. this is something that has helped me very recetnly so thankyou

  2. Great guidance I recently upon your blog and have been reading along. I thought I would leave my primary comment. I don’t know what tolet it be knownexcept that I have enjoyed reading. Unerring blog. I will keep visiting this blog very on all occasions. Your blog review here q6

  3. Wonderful, that’s just what I was scanning for! Your article just saved me alot of work

    I’ll make sure to put this in good use!

  4. Useful blog website, keep me personally through searching it, I am seriously interested to find out another recommendation of it.

  5. Thanks for an idea, you sparked at thought from a angle I hadn’t given thoguht to yet. Now lets see if I can do something with it.

  6. Thanks for the post, keep posting stuff

Leave a Reply

Your email address will not be published.