LLMS_Admin_Reporting_Tab_Memberships::output()
Output tab content.
Return Return
(void)
Source Source
File: includes/admin/reporting/tabs/class.llms.admin.reporting.tab.memberships.php
public function output() { // Single membership. if ( isset( $_GET['membership_id'] ) ) { if ( ! current_user_can( 'edit_post', llms_filter_input( INPUT_GET, 'membership_id', FILTER_SANITIZE_NUMBER_INT ) ) ) { wp_die( __( 'You do not have permission to access this content.', 'lifterlms' ) ); } $tabs = apply_filters( 'llms_reporting_tab_membership_tabs', array( 'overview' => __( 'Overview', 'lifterlms' ), 'students' => __( 'Students', 'lifterlms' ), ) ); llms_get_template( 'admin/reporting/tabs/memberships/membership.php', array( 'current_tab' => isset( $_GET['stab'] ) ? esc_attr( llms_filter_input_sanitize_string( INPUT_GET, 'stab' ) ) : 'overview', 'tabs' => $tabs, 'membership' => llms_get_post( intval( $_GET['membership_id'] ) ), ) ); } else { $table = new LLMS_Table_Memberships(); $table->get_results(); echo $table->get_table_html(); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.9.0 | Stop using deprecated FILTER_SANITIZE_STRING . |
3.35.0 | Sanitize input data. |
3.32.0 | Introduced. |