Revision: 57915
Updated Code
at June 14, 2012 20:43 by paullombard
Updated Code
/* Plugin Name: Your Plugin Name Here Plugin URI: http://yourpluginsite.com Description: This displays your Blogs in your WP Network Author: The Author Name Here Version: 1.0.0 Author URI: http://theauthoraddress.com */ class My_Widget extends WP_Widget { public function __construct() { // widget actual processes } public function form( $instance ) { // outputs the options form on admin } public function update( $new_instance, $old_instance ) { // processes widget options to be saved } public function widget( $args, $instance ) { // outputs the content of the widget } } add_action( 'widgets_init', create_function( '', 'register_widget( "My_Widget" );'
Revision: 57914
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 14, 2012 19:54 by paullombard
Initial Code
add_action( 'widgets_init', 'pl_register_widgets'); function pl_register_widgets() { register_widget(''); }
Initial URL
Initial Description
Template For Wordpress widgets.
Initial Title
Template For Wordpress Widget
Initial Tags
wordpress
Initial Language
PHP