好吧,多亏了Rup的建议,我才把这个应用到本地的所有站点上(在使用live之前会仔细检查!)
$blogs = get_sites([\'public\' => 1, \'orderby\' => \'registered\', \'order\' => \'DESC\', \'number\' => 1000]);
foreach($blogs as $blog) {
$bid = $blog->blog_id;
switch_to_blog($bid);
update_option( \'admin_email\', \'[email protected]\' );
update_option( \'new_admin_email\', \'[email protected]\' );
}