LLMS_View_Manager::modify_enrollment_status( string $status )

Modify the enrollment status of current user based on the view students will always show as enrolled visitors will always show as not-enrolled


Description Description


Parameters Parameters

$status

(string) (Required) 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.