library/Admin/Roles/General.php
public function removeUnusedRoles()
    {
        $removeRoles = array(
            'contributor'
        );

        foreach ($removeRoles as $role) {
            if (!get_role($role)) {
                continue;
            }

            update_option('_' . $role . '_role_bkp', get_role('author'));
            remove_role($role);
        }
    }
public function removeUnusedRoles()
    {
        $removeRoles = array(
            'contributor'
        );

        foreach ($removeRoles as $role) {
            if (!get_role($role)) {
                continue;
            }

            update_option('_' . $role . '_role_bkp', get_role('author'));
            remove_role($role);
        }
    }
public function removeUnusedRoles ( ) { $ removeRoles = array ( 'contributor' ) ; foreach ( $ removeRoles as $ role ) { if ( ! get_role ( $ role ) ) { continue ; } update_option ( '_' . $ role . '_role_bkp' , get_role ( 'author' ) ) ; remove_role ( $ role ) ; } }
Remove unwanted roles
@return void
Remove unwanted roles