不需要插件这里有几行代码可以修改并粘贴到主题函数中。php文件,您将在发布帖子时收到一封新电子邮件:
add_action(\'publish_post\', \'send_admin_email\');
function send_admin_email($post_id){
$to = \'[email protected]\';
$subject = \'mail subject here\';
$message = "your message here ex: new post published at: ".get_permalink($post_id);
wp_mail($to, $subject, $message );
}