Add $_POST data before submitting registration
I have read a bunch of posts on registration (this one being closest to what I was looking for: https://buddypress.org/support/topic/modifying-customising-the-registration-process/) but have not found a good way to add $_POST data to the registration before BuddyPress starts processing it. I need a filter hook, but can’t find it.
Essentially I want to combine two fields the user fills out, run a function to return a combined value, and pass that as $_POST data to BuddyPress.
EXAMPLE: User fills out ‘First Name’ and ‘Last Name”. I want to combine those fields to create the Username after running a value from a function that will combine first and last name, check if the username_exists(), and possibly append a number to the end of it.
- You must be logged in to reply to this topic.