W3cubDocs

/WordPress

apply_filters( ‘recovery_mode_email’, array $email, string $url )

Filters the contents of the Recovery Mode email.

Parameters

$emailarray
Used to build a call to wp_mail() .
  • to string|array
    Array or comma-separated list of email addresses to send message.
  • subject string
    Email subject
  • message string
    Message contents
  • headers string|array
    Optional. Additional headers.
  • attachments string|array
    Optional. Files to attach.
$urlstring
URL to enter recovery mode.

Source

$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.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/recovery_mode_email