您可以使用add\\u角色功能:
add_role( $role, $display_name, $capabilities );
只需根据需要设置自定义值:
add_role(\'basic_contributor\', \'Basic Contributor\', array(
\'read\' => true, // True allows that capability
\'edit_posts\' => true,
\'delete_posts\' => false, // Use false to explicitly deny
));
插件:
https://wordpress.org/plugins/user-role-editor/