Email_Reset_Email_Request
extends System_Email
in package
Send email to request email address change.
- Asks the user to confirm the new email address.
Tags
Table of Contents
Constants
- CONTENT = 'email-reset-email-request.php'
- Request content filename.
Properties
- $content : string
- Fully qualified path to the email content partial.
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
- $mail_args : array<string|int, mixed>
- The array of arguments for the email.
Methods
- get_instance() : object
- Creates and/or returns the instance of this class.
- is_send() : bool
- Filter and set the send email flag.
- send() : bool|WP_Error
- Send the user email change request email.
- __construct() : mixed
- Initialise the class.
Constants
CONTENT
Request content filename.
protected
string
CONTENT
= 'email-reset-email-request.php'
Tags
Properties
$content
Fully qualified path to the email content partial.
protected
string
$content
= ''
Tags
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
$mail_args
The array of arguments for the email.
protected
array<string|int, mixed>
$mail_args
= array('to' => array(), 'cc' => array(), 'bcc' => array(), 'subject' => '', 'body' => '', 'is_internal' => false)
{ The email arguments. @type string[] $to The email address(es) of the recipients of the email. @type string[] $cc Optional. The email address(es) of the cc recipients of the email. @type string[] $bcc Optional. The email address(es) of the bcc recipients of the email. * @type string $subject The subject of the email. @type string $body The email content. @type bool $is_internal Flag to indicate that eamil is internal and not intended for external users. }
Tags
Methods
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
is_send()
Filter and set the send email flag.
public
is_send(array<string|int, mixed> ...$args) : bool
Parameters
- $args : array<string|int, mixed>
-
A variable set of arguments.
Tags
Return values
bool —The send email flag.
send()
Send the user email change request email.
public
send(array<string|int, mixed> $user_data, array<string|int, mixed> $user_meta) : bool|WP_Error
Parameters
- $user_data : array<string|int, mixed>
-
The user data in array form.
- $user_meta : array<string|int, mixed>
-
{ The new user metadata including array of new email and hash. @type string[] $_new_email { The array of new email data. @type string $newemail The requested new email. @type string $hash The hashed email key. } }
Tags
Return values
bool|WP_Error —Success/failure or WP_Error.
__construct()
Initialise the class.
protected
__construct() : mixed