This topic contains 1 reply, has 1 voice. Last updated by Shayne Letford 3 years, 4 months ago.
| Topic Author | Topic |
|---|---|
| Posted: Saturday Aug 31st, 2013 at 6:04 am #58915 | |
|
Hello, Is there a way to automatically populate the user custom capability field with the username at Registration? I am currently offering free registration for my site. However, since each user will have access to their own page (much like the Client Portal Video here: http://www.s2member.com/videos/716DC24E7E347DC2), I need their custom capability to equal their username instead of everyone having the same capability. Since it’s not feasible to do this manually every time someone registers, I would like this to happen automatically during the registration process. Is this possible? I poured though the forum posts and the closest thing that I could find was the following code:
This would work great if I was using Gravity Forms for registration and needed the custom capability for all of the new registrations to be “music”, but unfortunately that is not exactly what I want. My PHP is not so great (it’s borderline pitiful), so the many attempts to alter this code to suit my needs have failed :( I’m not even sure if this is the right direction. Can anyone please help? Thanks |
|








Pre-Sale FAQs
Video Tutorials
Community Forum
Knowledge Base
News/Updates
s2 Codex / Docs
GPL v2 License
Contact A Human
About Us
Our Customers
Support Policy
Privacy Policy
