apply_filters( 'recovery_mode_email', array $email , string $url )
Filter the contents of the Recovery Mode email.
Description
Parameters
-
(array) Used to build wp_mail().
- $url
-
(string) URL to enter recovery mode.
Source
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |
In addition to using the constant
RECOVERY_MODE_EMAIL
to override the email the filter can be used.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