WordPress at a glance
filter is not described

recovery_mode_email filter-hook . WP 5.2.0

Filters the contents of the Recovery Mode email.

Usage

add_filter( 'recovery_mode_email', 'filter_function_name_8112', 10, 2 );
function filter_function_name_8112( $email, $url ){
	// filter...

	return $email;
}
$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.

Changelog

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

Where the hook is called

WP_Recovery_Mode_Email_Service::send_recovery_mode_email()
recovery_mode_email
wp-includes/class-wp-recovery-mode-email-service.php 222
$email = apply_filters( 'recovery_mode_email', $email, $url );

Where in WP core the hook is used WordPress

Usage not found.