让WordPress用户email可为空

add_action(‘user_profile_update_errors’, ‘my_user_profile_update_errors’, 10, 3 );function my_user_profile_update_errors($errors, $update, $user) { $errors->remove(’empty_email’);}