The following snippet will allow you to add a custom role called "Plugin Manager" with permission to manage plugins.
add_role(
'plugin-manager',
'Plugin Manager',
[
'activate_plugins',
'update_plugins',
'install_plugins',
'delete_plugins',
'edit_plugins',
'upload_plugins'
]
);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…