LLMS_Template_Loader::restricted_by_enrollment_lesson( array $info )

Handle redirects and messages when a user attempts to access a lesson for a course they’re not enrolled in


Description Description

redirect to parent course and display message


Parameters Parameters

$info

(array) (Required) array of restriction info from llms_page_restricted()


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.template.loader.php

	public function restricted_by_enrollment_lesson( $info ) {

		$msg = llms_get_restriction_message( $info );
		$redirect = get_permalink( $info['restriction_id'] );

		$this->handle_restriction(
			apply_filters( 'llms_restricted_by_enrollment_lesson_message', $msg, $info ),
			apply_filters( 'llms_restricted_by_enrollment_lesson_redirect', $redirect, $info ),
			'error'
		);

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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