LLMS_Abstract_User_Data::__construct( mixed $user = null )


Description Description

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

Top ↑

Parameters Parameters


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

Default value: null

Top ↑

Return Return


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

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.