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


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

Top ↑

Return Return


Top ↑

Source Source

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

	public function modify_enrollment_status( $status ) {

		switch ( $this->get_view() ) {

			case 'visitor':
				$status = false;

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


		return $status;


Top ↑

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.