apply_filters( 'recovery_mode_email', array $email , string $url )
Filter the contents of the Recovery Mode email.
Description Description
Parameters Parameters
-
(array) Used to build wp_mail().
- $url
-
(string) URL to enter recovery mode.
Source Source
Changelog Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
In addition to using the constant
RECOVERY_MODE_EMAILto override the email the filter can be used.add_filter( 'recovery_mode_email', function( $email ) { $email['to'] = '[email protected]'; return $email; } );It’s recommended to place your filter implementation into a separate plugin or mu-plugin to avoid Fatal Errors in your theme or plugin from causing the filter to never fire.
This was recently experienced in core#47939 – https://core.trac.wordpress.org/ticket/47939