Forum Replies Created
-
In reply to: How to Uninstall and remove role capabilities
If bove code not working then use this code;
$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”);In reply to: How to Uninstall and remove role capabilitiesAfter completing the steps mentioned above add this code in your site theme’s functions.php file and reload the site, once done then remove this code from funtions.php file and save the file:
// This function will remove user roles. You may need to inspect the user role dropdown on the user profile page to see the correct user role label to use below
function wps_remove_role() {
remove_role( ‘bbp_moderator’ );
remove_role( ‘bbp_blocked’ );
remove_role( ‘bbp_spectator’ );
remove_role( ‘bbp_keymaster’ );
remove_role( ‘um_admin’ );
remove_role( ‘um_member’ );
}
add_action( ‘init’, ‘wps_remove_role’ );In reply to: How to Uninstall and remove role capabilitiesHello Guys,
I got the solution of this issue, follow the steps:
1. Backup your whole wordpress account if something goes wrong.
3. Install and/or activate the bbPress plugin again if you have deactivated and/or delete it.
4. In WordPress administration panel, go to Tools -> Forums -> Reset Forums tab.
5. Check the delete imported users and Are you sure you want to do this? checkbox to acknowledge that the removal process cannot be undone.6. Then click on reset bbpress button
and done the process will remove all the data of the bpress.