Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Admin_Reporting::get_tabs()
Get an array of tabs to output in the main reporting menu.
Return Return
(array)
Source Source
File: includes/admin/reporting/class.llms.admin.reporting.php
private function get_tabs() { $tabs = array( 'students' => __( 'Students', 'lifterlms' ), 'courses' => __( 'Courses', 'lifterlms' ), 'memberships' => __( 'Memberships', 'lifterlms' ), 'quizzes' => __( 'Quizzes', 'lifterlms' ), 'sales' => __( 'Sales', 'lifterlms' ), 'enrollments' => __( 'Enrollments', 'lifterlms' ), ); foreach ( $tabs as $slug => $tab ) { if ( ! current_user_can( $this->get_tab_cap( $slug ) ) ) { unset( $tabs[ $slug ] ); } } return apply_filters( 'lifterlms_reporting_tabs', $tabs ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.32.0 | Added Memberships tab. |
3.2.0 | Introduced. |