Support is monitored from Monday to Saturday in office hours from the GMT timezone. Our response time can be up to 2 business days.

Notice: We do not accept any customization. Please Read Envato Support Policy. But we still can help with little snippets if that's possible!

Okay
  Print

How to add user role to registration form?

Please do these steps

1. Go to your FTP, and go to folder "wp-content/plugins"

2. Create a PHP file there and name it with "bp-custom.php". But if you already have it, you don't need to create a new one. Just open it

3. Put these snippets on the file

https://gist.github.com/KaineLabs/be878ed9d490ffd6627c7d30924babcb#file-yz-add-user-role-to-registeration-form-php

4. Please go to line 34 - 38 on the snippet and you will see list of Roles and the slugs that included there. You can edit, remove or add new roles as you need.

5. Save the file