Add a specific user role for vendors

hi! I want to add the category vendors to the user role, there is such a code

If you mean adding a custom role for vendors there’s no such option at the moment, vendors don’t have a specific role (the minimum required role is Contributor, it’s set automatically once a user becomes a vendor), but vendor users have their vendor profile in WordPress/Vendors and at least 1 listing.

thank you