Mu-plugin causes entire site to crash
I think i'm probably doing something daft here. Every time i try to include this as a mu-plugin it takes down the test site though.
?php
if( is_plugin_active( '/public_html/wp-content/plugins/wordfence.php' ) ) {
require_once('wp-load.php');
$to = ‘myemail@gmail.com’;
$subject = ‘Wordfence is down’;
$message = ‘Wordfence is not active’;
$headers = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $to, $subject, $message, $headers );
}
Any ideas where i'm going wrong would be very much appreciated :)
Topic mu-plugins Wordpress
Category Web