Méthode |
Description |
|
addFields ( array $fields, string $capability = 'edit_users' ) : Themosis\User\IUser |
Register custom fields for users. |
|
addSections ( array $sections ) : Themosis\User\IUser |
Register sections for user custom fields. |
|
current ( ) : User |
Look at the current user and return an instance. |
|
get ( integer $id ) : User |
Return a User instance using its ID. |
|
make ( string $username, string $password, string $email ) : User | WP_Error |
Create a new WordPress user. |
|
validate ( array $rules = [] ) : Themosis\User\IUser |
Register validation rules for user custom fields. |
|