Created
March 7, 2012 22:47
-
-
Save jbreitenbucher/1996837 to your computer and use it in GitHub Desktop.
WordPress: Widget Boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JB-__Class Name__ extends WP_Widget { | |
function __construct() | |
{ | |
$params = array( | |
'description' => '', | |
'name' => '' | |
); | |
parent::__contruct('','',$params); | |
} | |
public function form() | |
{ | |
} | |
public function widget() | |
{ | |
} | |
} | |
add_action('widgets_init','jb_register_widget'); | |
function jb_register_widget() | |
{ | |
register_widget('__Class Name__'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment