Wholesale_Customer
Controller to manage wholesale customer operations
Tags
Table of Contents
- $email : string
- The email address.
- $moderation_required : bool
- Whether moderation is required.
- $object : WP_User
- The user object.
- $user_id : int
- The user ID.
- $username : string
- The username.
- __construct() : mixed
- Constructor.
- approve() : mixed
- Approve a customer if they are pending
- reject() : mixed
- Reject a customer if they are pending
- regenerate_password() : string
- Regenerate the password after approval
Properties
The email address.
private
string
$email
Tags
$moderation_required
Whether moderation is required.
private
bool
$moderation_required
Tags
$object
The user object.
private
WP_User
$object
Tags
$user_id
The user ID.
private
int
$user_id
Tags
$username
The username.
private
string
$username
Tags
Methods
__construct()
Constructor.
public
__construct(int $id) : mixed
Parameters
- $id : int
Tags
Return values
mixed —approve()
Approve a customer if they are pending
public
approve() : mixed
Tags
Return values
mixed —reject()
Reject a customer if they are pending
public
reject() : mixed
Tags
Return values
mixed —regenerate_password()
Regenerate the password after approval
private
regenerate_password() : string
Tags
Return values
string —$password