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: ''
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(); } }
Expand full source code Collapse full source code View on GitHub
User Contributed Notes User Contributed Notes
Permalink: