Hi @stefgerber,
I’m checking with our plugin team to see if there is any quick workaround that could be shared regarding this.
Will keep you updated once I get further feedback asap. Have a nice day ahead.
Kind Regards,
Nithin
Hi @stefgerber,
Please try the following code which should allow you to add more emails:
<?php
add_filter( 'wp_mail', function( $atts ){
if( ! empty( $atts['subject'] ) && strpos( $atts['subject'], 'Broken links detected') && isset( $atts['to'] ) && $atts['to'] === get_option( 'admin_email' ) ){
$atts['to'] = (array) $atts['to'];
$atts['to'][] ='abc@example.com';
$atts['to'][] ='xyz@example.com';
}
return $atts;
} );
You’ll have to replace the example email IDs shared in the above code with your email IDs.
You can implement the above code as a mu-plugins. Please check the following doc on how to add as a mu-plugins:
Must Use Plugins
Have a nice day ahead.
Kind Regards,
Nithin
Perfect, everything sorted! Thanks.