🌈 搜索
📅  最后修改于: 2022-03-11 14:54:24.303000             🧑  作者: Mango
$wp_user_object = new WP_User($current_user->ID); $wp_user_object->set_role('editor');