mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
Update 1.2.92
This commit is contained in:
+17
-2
@@ -41,13 +41,28 @@ class UM_Profile {
|
||||
return $primary;
|
||||
}
|
||||
|
||||
/***
|
||||
*** @Activated tabs in backend
|
||||
***/
|
||||
function tabs_enabled(){
|
||||
$tabs = $this->tabs();
|
||||
foreach( $tabs as $id => $info ){
|
||||
if ( isset( $info['name'] ) ) {
|
||||
if ( um_get_option('profile_tab_'.$id) || isset( $info['_builtin'] ) ) {
|
||||
$primary[$id] = $info['name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
return ( isset( $primary ) ) ? $primary : '';
|
||||
}
|
||||
|
||||
/***
|
||||
*** @Get active_tab
|
||||
***/
|
||||
function active_tab() {
|
||||
|
||||
|
||||
$this->active_tab = um_get_option('profile_menu_default_tab');
|
||||
|
||||
|
||||
if ( get_query_var('profiletab') ) {
|
||||
$this->active_tab = get_query_var('profiletab');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user