- This topic has 1 reply, 2 voices, and was last updated 2 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › New member registration: auto-populate username from function. What hooks?
Tagged: action, api, registration, username
I have a client who wants usernames to be automatically assigned based on a naming scheme they have. I am using the “base” eMember plugin.
Developing the php function for creating the string to be used as a name is no problem, but what what hooks and filters do we have to pre-populate the username field from this function when the registration form is first displayed? And can we make the username field on the registration form read-only using an eMember setting? (Cleaner than doing it via Javascript).
Is there doco on any actions and filters? Is the above use case covered by the forms add-on?
BTW: first time poster, really like the unobtrusive nature of the plugin on the back-end and the ease of use.
Thanks
Is this what you are looking for???