diff --git a/inc/user/functions.php b/inc/user/functions.php index b25eeecc..dd10ba52 100755 --- a/inc/user/functions.php +++ b/inc/user/functions.php @@ -181,7 +181,9 @@ function opalestate_management_user_menu_tabs() { global $post; - $uri = opalestate_get_user_management_page_uri(); + $uri = opalestate_get_user_management_page_uri(); + + $current_tab = isset( $_GET['tab'] ) && $_GET['tab'] ? sanitize_text_field( $_GET['tab'] ) : 'dashboard'; foreach ( $menu as $key => $item ) { if( preg_match("#http#", $item['link']) ){ @@ -189,8 +191,8 @@ function opalestate_management_user_menu_tabs() { } else { $link = $uri . '?tab=' . $item['link']; } - - $output .= '