LLMS_User_Permissions::is_current_user_instructor()

Determines if the current user is an instructor.


Return Return

(bool)


Top ↑

Source Source

File: includes/class.llms.user.permissions.php

	public static function is_current_user_instructor() {

		return ( current_user_can( 'lifterlms_instructor' ) && current_user_can( 'list_users' ) && ! current_user_can( 'manage_lifterlms' ) );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.34.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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