Its better to register this role with add_role
( docs ) before adding it to user
Also, if you want to change roles attribute, try set_role
instead of add_role
Its better to register this role with add_role
( docs ) before adding it to user
Also, if you want to change roles attribute, try set_role
instead of add_role