get_tabs()->tabs(); foreach ( $tabs as $tab_key => $profile_tab ) { if ( ! is_object( $profile_tab ) || ! $profile_tab || $profile_tab->is_hidden() || ! $profile->current_user_can( 'view-tab-' . $tab_key ) ) { continue; } // Admin view another user profile if ( $profile->get_user()->get_id() !== $profile->get_user_current()->get_id() && current_user_can( ADMIN_ROLE ) ) { $tab_key_hidden_admin_view_user = [ 'settings', 'logout', 'orders', 'gradebook' ]; if ( in_array( $tab_key, $tab_key_hidden_admin_view_user ) ) { continue; } } $slug = $profile->get_slug( $profile_tab, $tab_key ); $link = $profile_tab->get( 'link' ) ? $profile_tab->get( 'link' ) : $profile->get_tab_link( $tab_key, true ); $target = $profile_tab->get( 'target' ) ? $profile_tab->get( 'target' ) : '_self'; $tab_classes = array( esc_attr( $tab_key ) ); $sections = $profile_tab->sections(); if ( $sections && sizeof( $sections ) > 1 ) { $tab_classes[] = 'has-child'; } if ( $profile->is_current_tab( $tab_key ) ) { $tab_classes[] = 'active'; } ?>
  • get( 'icon' ) ) ) { echo wp_kses_post( str_replace(array('fas fa-','fa fa-'),'lp-icon-', $profile_tab->get( 'icon' ) )); } ?> get( 'title' ), $tab_key ); ?> 1 ) { ?>
      $section_data ) { $classes = array( esc_attr( $section_key ) ); if ( $profile->is_current_section( $section_key, $section_key ) ) { $classes[] = 'active'; } $section_slug = $profile->get_slug( $section_data, $section_key ); $section_link = $profile->get_tab_link( $tab_key, $section_slug ); ?>