llms_get_instructor( mixed $user = null )

Get an LLMS_Instructor

Parameters Parameters


(mixed) (Optional) WP_User ID, instance of WP_User, or instance of any instructor class extending this class.

Default value: null

Top ↑

Return Return

(LLMS_Instructor|false) LLMS_Instructor instance on success, false if user not found

Top ↑

Source Source

File: includes/functions/llms.functions.person.php

function llms_get_instructor( $user = null ) {
	$student = new LLMS_Instructor( $user );
	return $student->exists() ? $student : false;

Top ↑

Changelog Changelog

Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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