get( 'sections' ) ) ) { if ( $profile_tab->get( 'callback' ) && is_callable( $profile_tab->get( 'callback' ) ) ) { echo call_user_func_array( $profile_tab->get( 'callback' ), [ $tab_key, $profile_tab, $user, ] ); } else { do_action( 'learn-press/profile-content', $tab_key, $profile_tab, $user ); } } else { foreach ( $profile_tab->get( 'sections' ) as $key => $section ) { if ( $profile->get_current_section( '', false, false ) === $section['slug'] ) { if ( isset( $section['callback'] ) && is_callable( $section['callback'] ) ) { echo call_user_func_array( $section['callback'], array( $key, $section, $user ) ); } else { do_action( 'learn-press/profile-section-content', $key, $section, $user ); } } } } ?>