Property | Type | Description | |
---|---|---|---|
$ID | integer | ||
$display_name | string | ||
$meta | array | ||
$user_activation_key | string | ||
$user_email | string | ||
$user_login | string | ||
$user_nicename | string | ||
$user_pass | string | ||
$user_registered | DateTime | ||
$user_status | string | ||
$user_url | string |
Method | Description | |
---|---|---|
__construct ( array $properties = [] ) | Override the default constructor so we can type cast certain properties. | |
delete_metadata ( string $meta_key ) | Delete the user's meta data. | |
flatten_props ( array $props ) : array | Convert complex objects to strings to insert into the database. | |
get_metadata ( string $meta_key, mixed $default = null ) : mixed | Get the user's meta data. | |
get_primary_key ( ) : string | Get the model's primary key. | |
get_searchable_fields ( ) : array | Get an array of properties to search when doing a search query. | |
get_table ( ) : string | Get the table used to store posts. | |
update_metadata ( string $meta_key, mixed $meta_value ) | Update the user's meta data. |
public __construct ( array $properties = [] ) | ||
$properties | array |
public delete_metadata ( string $meta_key ) | ||
$meta_key | string |
public flatten_props ( array $props ) : array | ||
$props | array | |
return | array |
public static get_primary_key ( ) : string | ||
return | string |
public static get_searchable_fields ( ) : array | ||
return | array |
public update_metadata ( string $meta_key, mixed $meta_value ) | ||
$meta_key | string | |
$meta_value | mixed |