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-includes/class-wp-recovery-mode-email-service.php 222
$email = apply_filters( 'recovery_mode_email', $email, $url );