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_View_Manager::get_view()

Get the current view role/type


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.view.manager.php

	private function get_view() {

		if ( ! isset( $_GET['llms-view-as'] ) || ! isset( $_GET['view_nonce'] ) || ! wp_verify_nonce( $_GET['view_nonce'], 'llms-view-as' ) ) {
			return 'self';
		}

		// ensure it's a valid view
		$views = $this->get_views();
		if ( ! isset( $views[ $_GET['llms-view-as'] ] ) ) {
			return 'self';
		}

		return $_GET['llms-view-as'];

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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