recovery_mode_email WordPress Filter Hook

The recovery_mode_email hook is used to send an email to the administrator when the site is in recovery mode. This email contains information about the site and how to recover it.

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

$url

(string)URL to enter recovery mode.


Top ↑

Source

File: wp-includes/class-wp-recovery-mode-email-service.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0The $email argument includes the attachments key.
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.