User::__construct( LLMSUsers[type] $user_id = '' )

Constructor If ID is passed then creates object by id else gets current user id.


Description Description


Parameters Parameters

$user_id

(LLMSUsers[type]) (Optional) [description]

Default value: ''


Top ↑

Source Source

File: includes/Users/User.php

	public function __construct( $user_id = '' ) {

		if ( is_numeric( $user_id ) ) {

			$this->id = absint( $user_id );

		} else {

			$this->id = get_current_user_id();

		}

	}

Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: