我想我可能在做一些愚蠢的事。每次我尝试将其作为mu插件包含时,它都会关闭测试站点。
<?php
if( is_plugin_active( \'/public_html/wp-content/plugins/wordfence.php\' ) ) {
require_once(\'wp-load.php\');
$to = ‘[email protected]’;
$subject = ‘Wordfence is down’;
$message = ‘Wordfence is not active’;
$headers = array(\'Content-Type: text/html; charset=UTF-8\');
wp_mail( $to, $subject, $message, $headers );
}
如果您有任何我出错的想法,我们将不胜感激:)