Wholesale_Customer

Controller to manage wholesale customer operations

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

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

$moderation_required

Whether moderation is required.

private bool $moderation_required
Tags

Methods

__construct()

Constructor.

public __construct(int $id) : mixed
Parameters
$id : int
Tags
throws
InvalidArgumentException

Non-numeric user ID supplied.

throws
Exception

User does not exist.

throws
Exception

Not a wholesale user.

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

Search results