WordPress at Your Fingertips
filter is not described

recovery_mode_email filter-hook . WP 5.2.0

Filters the contents of the Recovery Mode email.


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

	return $email;

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 to enter recovery mode.


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

Where the hook is called

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.