Delete bbPress Plugin leaves behind roles

After delete bbPress Plugin, it leaves behind user roles like: Keymaster, Spectator, etc...
Why did bbPress plugin not clean up it's own roles?
How to carefully remove some existing users from these roles - without deleting the users?
How to tell for sure which user roles were created by bbPress?
How to get rid of these old bbPress user roles?

Please Advise...

  • Nithin

    Hey VirtualArtists,

    Hope you are doing good today. :slight_smile:

    Why did bbPress plugin not clean up it's own roles?

    This is a bug with the plugin which has been fixed, but some users still do encounter this, and bbPress could exist in their system. Have you been running bbPress for a while? or is it a new install?

    How to tell for sure which user roles were created by bbPress?

    When a user is created while the plugin is active, the users gets assigned the following roles, Keymaster, Moderator, Participant, Spectator, Blocked. Roles other than that, shouldn't be related to the bbPress plugin.

    How to carefully remove some existing users from these roles - without deleting the users? How to get rid of these old bbPress user roles?

    Add the following code in your themes functions.php file, and refresh your website, it should remove all the roles created by the plugin.

    $wp_roles = new WP_Roles();
    $wp_roles->remove_role("bbp_keymaster");
    $wp_roles->remove_role("bbp_moderator");
    $wp_roles->remove_role("bbp_participant");
    $wp_roles->remove_role("bbp_spectator");
    $wp_roles->remove_role("bbp_blocked");

    Please remove the code, once you have refreshed the website. If the above code, doesn't work, please enable support access, so that we could give a closer look. Have a great day ahead. :slight_smile:

    Best Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.