Posted by in Wordpress plugin on September 26th, 2009
In WordPress 2.8, there’s a new widget API. The new widgets API is a class that abstracts away much of the complexity involved in writing a widget, especially multi-widgets.
Basically, you extend WP_Widget with your own class that provides a constructor and three methods — widget(), form(), and update().
* The WP_Widget source can be viewed here (read the phpdoc for moreinfo on usage): http://core.trac.wordpress.org/browser/trunk/wp-includes/widgets.php
* You can see examples of how to use it here: http://core.trac.wordpress.org/browser/trunk/wp-includes/default-widgets.php
Here’s an execelent example of the widget.
Api, Complexity, Constructor, Moreinfo, Multiple Times, Options, Phpdoc, Widget, Widgets, Wp
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^