这是我建议您为站点A获取RSS提要的内容
http://codex.wordpress.org/WordPress_Feeds
将此插件安装到站点B
https://wordpress.org/plugins/rss-post-importer/
它可以选择抓取帖子并另存为草稿。至于电子邮件,您可能需要添加一些代码,以便在添加新帖子时发送电子邮件。
function SendOutEmail($to, $subject, $message){
global $wpdb;
add_filter( \'wp_mail_content_type\',\'set_mail_content_type\' );
$headers = \'From: no-reply <[email protected]>\';
if (is_array($to)){
foreach ($to as $email){
wp_mail( $email, $subject, $message ,$headers);
}
}else{
wp_mail( $to, $subject, $message ,$headers);
}
}
function set_mail_content_type(){
return "text/html";
}