pfeifferNet

Email_Reset_Password_Request extends System_Email
in package

Handle password reset request emails

  • Password reset request, with link to reset password form
Tags
since
5.6.0
since
5.9.0

Extend system email class.

uses
System_Email

Table of Contents

Constants

CONTENT  = 'email-reset-password-request.php'
Request password reset email 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_email()  : array<string|int, string>
Filter the password change request email.
get_instance()  : object
Creates and/or returns the instance of this class.
is_send()  : bool
Filter and set the send email flag.
__construct()  : mixed
Initialise the class.

Constants

Properties

$content

Fully qualified path to the email content partial.

protected string $content = ''
Tags
since
5.9.0

$instances

The array of instances of this class and sub-classes.

protected static array<string|int, object> $instances = array()
Tags
since
5.11.0

$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
since
5.9.0

Methods

get_email()

Filter the password change request email.

public get_email(array<string|int, string> $default_email, string $key, string $user_login, WP_User $user_data) : array<string|int, string>
Parameters
$default_email : array<string|int, string>

{ The default password reset email settings. @type string $to The intended recipient. @type string $subject The subject of the email. @type string $smessage The body of the email. @type string $headers The headers of the email. }

$key : string

The activation key.

$user_login : string

The username for the user.

$user_data : WP_User

WP_User object.

Tags
since
5.6.0
link
https://developer.wordpress.org/reference/hooks/retrieve_password_notification_email/
uses
HTML_Email::get_parameters()
Return values
array<string|int, string>

The modified email parameters.

get_instance()

Creates and/or returns the instance of this class.

public static get_instance() : object
Tags
since
5.11.0
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
since
5.9.0
Return values
bool

The send email flag.


        
On this page

Search results