User::__get( string $item )
__get function
Description Description
initializes the user object based on user data
Parameters Parameters
- $item
-
(string) (Required)
Return Return
(string) $value
Source Source
File: includes/Users/User.php
public function __get( $item ) { $value = get_user_meta( $this->id, 'llms_' . $item, true ); if ( ! $value) { $value = get_user_meta( $this->id, $item, true ); } return $value; }
Expand full source code Collapse full source code View on GitHub
User Contributed Notes User Contributed Notes
Permalink: