LLMS_Abstract_User_Data::__construct( mixed $user = null )
Constructor
Description Description
If no user id provided, will attempt to use the current user id
Parameters Parameters
- $user
-
(mixed) (Optional) WP_User ID, instance of WP_User, or instance of any student class extending this class
Default value: null
Return Return
(void)
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 ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.2.3 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: