jennettefulda + widgets   4

Creating Custom WordPress Widgets | Pro Theme Design
class My_Widget extends WP_Widget { function My_Widget() { parent::WP_Widget(false, 'Our Test Widget'); } function form($instance) { // outputs the options form on admin } function update($new_instance, $old_instance) { // processes widget options to be saved return $new_instance; } function widget($args, $instance) { // outputs the content of the widget } } register_widget('My_Widget');
custom  widgets  widget  wordpress 
july 2012 by jennettefulda

Copy this bookmark:



description:


tags: