LLMS_Student_Dashboard::get_tabs()

Retrieve all dashboard tabs and related data


Return Return

(array)


Top ↑

Source Source

File: includes/class.llms.student.dashboard.php

146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
*/
public static function get_tabs() {
 
    $tabs = array(
        'dashboard'         => array(
            'content'  => 'lifterlms_template_student_dashboard_home',
            'endpoint' => false,
            'nav_item' => true,
            'title'    => __( 'Dashboard', 'lifterlms' ),
            'url'      => llms_get_page_url( 'myaccount' ),
        ),
        'view-courses'      => array(
            'content'  => 'lifterlms_template_student_dashboard_my_courses',
            'endpoint' => get_option( 'lifterlms_myaccount_courses_endpoint', 'my-courses' ),
            'paginate' => true,
            'nav_item' => true,
            'title'    => __( 'My Courses', 'lifterlms' ),
        ),
        'my-grades'         => array(
            'content'  => 'lifterlms_template_student_dashboard_my_grades',
            'endpoint' => get_option( 'lifterlms_myaccount_grades_endpoint', 'my-grades' ),
            'paginate' => true,
            'nav_item' => true,
            'title'    => __( 'My Grades', 'lifterlms' ),
        ),
        'view-memberships'  => array(
            'content'  => 'lifterlms_template_student_dashboard_my_memberships',
            'endpoint' => get_option( 'lifterlms_myaccount_memberships_endpoint', 'my-memberships' ),
            'nav_item' => true,
            'title'    => __( 'My Memberships', 'lifterlms' ),
        ),
        'view-achievements' => array(
            'content'  => 'lifterlms_template_student_dashboard_my_achievements',
            'endpoint' => get_option( 'lifterlms_myaccount_achievements_endpoint', 'my-achievements' ),
            'paginate' => true,
            'nav_item' => true,
            'title'    => __( 'My Achievements', 'lifterlms' ),
        ),
        'view-certificates' => array(
            'content'  => 'lifterlms_template_student_dashboard_my_certificates',
            'endpoint' => get_option( 'lifterlms_myaccount_certificates_endpoint', 'my-certificates' ),
            'paginate' => true,
            'nav_item' => true,
            'title'    => __( 'My Certificates', 'lifterlms' ),
        ),
        'notifications'     => array(
            'content'  => 'lifterlms_template_student_dashboard_my_notifications',
            'endpoint' => get_option( 'lifterlms_myaccount_notifications_endpoint', 'notifications' ),
            'paginate' => true,
            'nav_item' => true,
            'title'    => __( 'Notifications', 'lifterlms' ),
        ),
        'edit-account'      => array(
            'content'  => array( __CLASS__, 'output_edit_account_content' ),
            'endpoint' => get_option( 'lifterlms_myaccount_edit_account_endpoint', 'edit-account' ),
            'nav_item' => true,
            'title'    => __( 'Edit Account', 'lifterlms' ),
        ),
        'redeem-voucher'    => array(
            'content'  => array( __CLASS__, 'output_redeem_voucher_content' ),
            'endpoint' => get_option( 'lifterlms_myaccount_redeem_vouchers_endpoint', 'redeem-voucher' ),
            'nav_item' => true,
            'title'    => __( 'Redeem a Voucher', 'lifterlms' ),
        ),
        'orders'            => array(
            'content'  => array( __CLASS__, 'output_orders_content' ),
            'endpoint' => get_option( 'lifterlms_myaccount_orders_endpoint', 'orders' ),
            'nav_item' => true,
            'title'    => __( 'Order History', 'lifterlms' ),
        ),
        'signout'           => array(
            'endpoint' => false,
            'title'    => __( 'Sign Out', 'lifterlms' ),
            'nav_item' => false,
            'url'      => wp_logout_url( llms_get_page_url( 'myaccount' ) ),
        ),
    );
 
    if ( llms_is_favorites_enabled() ) {
        $tabs = llms_assoc_array_insert(
            $tabs,


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Add pagination to the view-achievements and view-certificates tabs.
3.28.2 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.