apply_filters( 'recovery_mode_email', array $email , string $url )
Filters the contents of the Recovery Mode email.
Parameters
-
$email
array -
Used to build a call to wp_mail() .
to
string|arrayArray or comma-separated list of email addresses to send message.subject
stringEmail subjectmessage
stringMessage contentsheaders
string|arrayOptional. Additional headers.attachments
string|arrayOptional. Files to attach.
-
$url
string -
URL to enter recovery mode.
Source
File: wp-includes/class-wp-recovery-mode-email-service.php
.
View all references
$email = apply_filters( 'recovery_mode_email', $email, $url );
Changelog
Version | Description |
---|---|
5.6.0 | The $email argument includes the attachments key. |
5.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
In addition to using the constant
RECOVERY_MODE_EMAIL
to override the email the filter can be used.It’s recommended to place your filter implementation into a separate plugin or mu-plugin to avoid Fatal Errors in your theme or plugin from causing the filter to never fire.
This was recently experienced in core#47939 – https://core.trac.wordpress.org/ticket/47939