dozent_user_data( null|int|object $user = null )

Return all activity records related an user for the Dozent LMS


Description

Example usage:

dozent_user_data();

See also


Parameters

$user

(null|int|object) (Optional)

Default value: null


Return

(DozentUserData|null)


Source

File: includes/user-functions.php

	function dozent_user_data( $user = null ) {
		$user = dozent_get_the_user( $user );

		if ( $user instanceof \Dozent\UserData ) {
			return $user;
		}

		return \Dozent\UserData::instance( $user->ID );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.