[wp-trac] [WordPress Trac] #47939: recovery_mode_email filter is not firing
WordPress Trac
noreply at wordpress.org
Tue Aug 27 17:22:43 UTC 2019
#47939: recovery_mode_email filter is not firing
----------------------------+-----------------------------
Reporter: mubashir.iqbal | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.2.2
Severity: critical | Keywords:
Focuses: |
----------------------------+-----------------------------
Since WordPress 5.2 there is a built-in feature that detects when a plugin
or theme causes a fatal error on your site, and notifies user with this
automated email.
There is a filter inside WP_Recovery_Mode_Email_Service class used to add
multiple recipient but that filter is not firing. Following is the filter
and how i am trying to add multiple recipient
{{{
$email = apply_filters( 'recovery_mode_email', $email, $url );
}}}
{{{
add_filter( 'recovery_mode_email', function( $email_data ) {
$email_data['to'] = array('user at example.com', 'abc at example.com');
return $email_data;
});
}}}
Please try to add multiple recipient using this filter and you will know
that is not firing for some reason.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47939>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list