LLMS_Abstract_User_Data::__construct( mixed $user = null )

Constructor


Description Description

If no user id provided, will attempt to use the current user id


Top ↑

Parameters Parameters

$user

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

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/abstracts/llms.abstract.user.data.php

	public function __construct( $user = null ) {

		$user = $this->get_user_id( $user );
		if ( false !== $user ) {
			$this->id   = $user;
			$this->user = get_user_by( 'ID', $user );
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.2.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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