mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
Add search widget
This commit is contained in:
+11
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user