Support » Plugin: Broken Link Checker » Email notifications

  • Resolved stefgerber

    (@stefgerber)


    I need to get notifications to the 3 emails (admin, webmaster) when broken links detected. Is it possible ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    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

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    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

    Thread Starter stefgerber

    (@stefgerber)

    Perfect, everything sorted! Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email notifications’ is closed to new replies.