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.


Get the current view role/type.

Return Return


Top ↑

Source Source

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

	private function get_view() {

		if ( ! llms_verify_nonce( 'view_nonce', 'llms-view-as', 'GET' ) ) {
			return 'self';

		// Ensure it's a valid view.
		$views = $this->get_views();
		$view  = llms_filter_input( INPUT_GET, 'llms-view-as' );
		if ( ! $view || ! isset( $views[ $view ] ) ) {
			return 'self';

		return $view;


Top ↑

Changelog Changelog

Version Description
5.9.0 Stop using deprecated FILTER_SANITIZE_STRING.
4.16.0 Don't access $_GET directly, use llms_filter_input().
3.35.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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