User_Edit implements Registerable, Standard_Service
Handles functionality on the User Edit screen
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- approval_field() : mixed
- Adds our approval field to the page
- handle_default_email() : WP_Errors
- We hook in here as late as possible and if there are no errors then send the default mail
- register() : mixed
- {@inheritdoc}
- registration_fields() : mixed
- Adds the registration fields
- save_approval_status() : mixed
- Processes the approval / rejection, or change to non-wholesale
- save_registration_fields() : mixed
- Processes the editing of the users provided registration fields
Methods
approval_field()
Adds our approval field to the page
public
approval_field(WP_User $user) : mixed
Parameters
- $user : WP_User
Tags
Return values
mixed —handle_default_email()
We hook in here as late as possible and if there are no errors then send the default mail
public
handle_default_email(WP_Errors &$errors, bool $update, WP_User &$user) : WP_Errors
Parameters
- $errors : WP_Errors
- $update : bool
- $user : WP_User
Tags
Return values
WP_Errors —$errors
register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —registration_fields()
Adds the registration fields
public
registration_fields(WP_User $user) : mixed
Parameters
- $user : WP_User
Tags
Return values
mixed —save_approval_status()
Processes the approval / rejection, or change to non-wholesale
public
save_approval_status(int $user_id) : mixed
Parameters
- $user_id : int
Tags
Return values
mixed —save_registration_fields()
Processes the editing of the users provided registration fields
public
save_registration_fields(int $user_id) : mixed
Parameters
- $user_id : int