LLMS_Admin_Reporting::get_stab_url( string $stab )

Get the full URL to a sub-tab within a reporting screen.


Description Description


Parameters Parameters

$stab

(string) (Required) Slug of the sub-tab.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/admin/reporting/class.llms.admin.reporting.php

	public static function get_stab_url( $stab ) {

		$args = array(
			'page' => 'llms-reporting',
			'tab' => self::get_current_tab(),
			'stab' => $stab,
		);

		switch ( self::get_current_tab() ) {
			case 'memberships':
				$args['membership_id'] = $_GET['membership_id'];
			break;

			case 'courses':
				$args['course_id'] = $_GET['course_id'];
			break;

			case 'students':
				$args['student_id'] = $_GET['student_id'];
			break;

			case 'quizzes':
				$args['quiz_id'] = $_GET['quiz_id'];
			break;

		}

		return add_query_arg( $args, admin_url( 'admin.php' ) );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.32.0 Added Memberships tab.
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: