Skip to content

Commit

Permalink
create function to register widget
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed May 9, 2012
1 parent d0e5add commit b4a3188
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/widgets/widget-social.php
Expand Up @@ -76,4 +76,7 @@ function form( $instance ) {
}
}

add_action( 'widgets_init', create_function( '', "register_widget('BE_Social_Widget');" ) );
function be_register_social_widget() {
register_widget('BE_Social_Widget');
}
add_action( 'widgets_init', 'be_register_social_widget' );

0 comments on commit b4a3188

Please sign in to comment.