Move calendar into its own widget

This commit is contained in:
Brian Miyaji
2014-01-29 18:27:05 +11:00
parent 403be21d34
commit b3270a06b1
11 changed files with 171 additions and 100 deletions

View File

@@ -0,0 +1,15 @@
<?php
/**
* Register all of the default WordPress widgets on startup.
*
* Calls 'widgets_init' action after all of the WordPress widgets have been
* registered.
*
* @since 2.2.0
*/
function sportspress_widgets_init() {
register_widget('SportsPress_Widget_Calendar');
}
add_action('widgets_init', 'sportspress_widgets_init', 1);