dozent_dashboard_permalinks()
Return Dozent Dashboard Permalinks
Return
(mixed|void)
Source
File: includes/core-functions.php
function dozent_dashboard_permalinks() { $nav_items = apply_filters( 'dozent_dashboard/permalinks', [ 'group-one' => [ 'index' => [ 'id' => 'index', 'title' => __( 'Dashboard', 'dozent' ), 'icon_class' => 'dicon-dashboard', ], 'my-profile' => [ 'id' => 'my-profile', 'title' => __( 'My Profile', 'dozent' ), 'icon_class' => 'dicon-profile', ], 'enrolled-courses' => [ 'id' => 'enrolled-courses', 'title' => __( 'Enrolled Courses', 'dozent' ), 'icon_class' => 'dicon-graduation-cap', ], 'wishlist' => [ 'id' => 'wishlist', 'title' => __( 'Wishlist', 'dozent' ), 'icon_class' => 'dicon-heart', ], 'reviews' => [ 'id' => 'reviews', 'title' => __( 'Reviews', 'dozent' ), 'icon_class' => 'dicon-stack', ], 'my-quiz-attempts' => [ 'id' => 'my-quiz-attempts', 'title' => __( 'My Quiz Attempts', 'dozent' ), 'icon_class' => 'dicon-quiz', ], //Purchase history will be available only Dozent Buy feature /* 'dozent-purchase-history' => [ 'id' => 'dozent-purchase-history', 'title' => __( 'Purchase History', 'dozent' ), 'icon_class' => 'dicon-cart', ], */ ], //Must be exists this group in order to show instructor section 'group-instructor' => [ 'group_name' => __( 'Instructor', 'dozent' ), 'cap' => DOZENT_INSTRUCTOR_ROLE, //capability /* 'create-course' => [ 'id' => 'create-course', 'title' => __( 'Create Course', 'dozent' ), //'hide_ui' => true, 'instructor_item' => true, 'icon_class' => 'dicon-pencil', ], */ 'my-courses' => [ 'id' => 'my-courses', 'title' => __( 'My Courses', 'dozent' ), 'instructor_item' => true, 'icon_class' => 'dicon-list-alt', ], 'earning' => [ 'id' => 'earning', 'title' => __( 'Earnings', 'dozent' ), 'instructor_item' => true, 'icon_class' => 'dicon-money', ], 'withdrawal' => [ 'id' => 'withdrawal', 'title' => __( 'Withdrawal', 'dozent' ), 'instructor_item' => true, 'icon_class' => 'dicon-withdrawal-alt', ], 'quiz-attempts' => [ 'id' => 'quiz-attempts', 'title' => __( 'Quiz Attempts', 'dozent' ), 'instructor_item' => true, 'icon_class' => 'dicon-quiz', ], 'discussion' => [ 'id' => 'discussion', 'title' => __( 'Discussion', 'dozent' ), 'instructor_item' => true, 'icon_class' => 'dicon-comments-line', ], ], 'group-three' => [ 'become-instructor' => [ 'id' => 'become-instructor', 'title' => __( 'Become an Instructor', 'dozent' ), 'icon_class' => 'dicon-instructor', 'cap_not' => DOZENT_INSTRUCTOR_ROLE, ], 'settings' => [ 'id' => 'settings', 'title' => __( 'Settings', 'dozent' ), 'icon_class' => 'dicon-cogs', ], 'logout' => [ 'id' => 'logout', 'title' => __( 'Logout', 'dozent' ), 'icon_class' => 'dicon-exit', ], 'retrieve-password' => [ 'id' => 'retrieve-password', 'title' => __( 'Retrieve Password', 'dozent' ), 'guest_item' => true, ], ] ] ); return apply_filters( 'dozent/dashboard/permalinks', $nav_items ); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |