Reference › Hooks apply_filters( 'recovery_mode_email' , array $email , string $url )
Since 5.2.0, 5.6.0 Parameters Fired at Source History Filters the contents of the Recovery Mode email.
Parameters $emailarray { Used to build a call to wp_mail(). @type string|array $to Array or comma-separated list of email addresses to send message. @type string $subject Email subject @type string $message Message contents @type string|array $headers Optional. Additional headers. @type string|array $attachments Optional. Files to attach.}$tostring | array
Array or comma-separated list of email addresses to send message.
$subjectstring
Email subject @type string $message Message contents @type string|array $headers Optional. Additional headers.
$attachmentsstring | array
Optional. Files to attach.
$urlstring URL to enter recovery mode. Fired at · 1 wp-includes/class-wp-recovery-mode-email-service.php:223WP_Recovery_Mode_Email_Service::send_recovery_mode_email() Source View on Trac ↗ View on GitHub ↗
217 * @type string $message Message contents 218 * @type string | array $headers Optional. Additional headers. 219 * @type string | array $attachments Optional. Files to attach. 220 * } 221 * @param string $url URL to enter recovery mode. 222 * / 223 $email = apply_filters ( 'recovery_mode_email' , $email , $url ) ; 224 225 $sent = wp_mail ( 226 $email [ 'to' ] , 227 wp_specialchars_decode ( sprintf ( $email [ 'subject' ] , $blogname ) ) , 228 $email [ 'message' ] , 229 $email [ 'headers' ] , History Introduced in 5.2.0 . Unchanged from 6.7.7 through 7.1.0.
6.7.7 6.8.8 6.9.7 7.0.4 7.1.0 Signature, return type and hooks compared across 5 parsed releases.
5.6.0
The $email argument includes the attachments key.from the docblock
5.2.0
Introduced.from the docblock
About this page Parsed data Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. Corrections Something wrong on this page? Report it and it gets fixed in the next regeneration.