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_AddOns::get_current_section()

Retrieves the current section from the query string.


Return Return

(string)


Top ↑

Source Source

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

	private function get_current_section() {

		$section = 'all';

		if ( isset( $_GET['page'] ) && 'llms-dashboard' === $_GET['page'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
			$section = 'featured';
		} elseif ( isset( $_GET['section'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
			$section = llms_filter_input_sanitize_string( INPUT_GET, 'section' );
		}

		return apply_filters( 'llms_admin_add_ons_get_current_section', $section );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.9.0 Stop using deprecated FILTER_SANITIZE_STRING.
3.5.0
3.22.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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