Add search widget

This commit is contained in:
jonfalcon
2016-03-17 15:09:49 -07:00
parent f962c285a8
commit 4ee94204ab
8 changed files with 179 additions and 5 deletions
+11 -1
View File
@@ -58,6 +58,12 @@ class UM_API {
__('This add-on enables you to link gravatar photos to user accounts with their email address.', 'ultimatemember'),
);
// include widgets
require_once um_path . 'core/widgets/um-search-widget.php';
// init widgets
add_action( 'widgets_init', array(&$this, 'widgets_init' ) );
}
/***
@@ -198,6 +204,10 @@ class UM_API {
}
function widgets_init() {
register_widget( 'um_search_widget' );
}
}
$ultimatemember = new UM_API();
$ultimatemember = new UM_API();