LLMS_View_Manager::modify_enrollment_status( string $status )

Modify the enrollment status of current user based on the view.


Description Description

Students will always show as enrolled.

Visitors will always show as not-enrolled.


Top ↑

Parameters Parameters

$status

(string) (Required) The actual status for the current user.


Top ↑

Return Return

(string)


Top ↑

Source Source

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

	public function modify_enrollment_status( $status ) {

		switch ( $this->get_view() ) {

			case 'visitor':
				$status = false;
				break;

			case 'student':
				$status = 'enrolled';
				break;

		}

		return $status;

	}


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.