llms_get_student( mixed $user = null )

Get an LLMS_Student

Parameters Parameters


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

Default value: null

Top ↑

Return Return

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

Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Version Description
3.9.0 Unknown
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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