Thank you, Henry. If you don’t mind that I add an additional question, how do I retrieve registration data from the hook? I would like to grab the username, email, display name, and meta data. I know it follows this form: function test_hook($user_id)
will get me the user’s ID to use. However, does every BP default registration value have its own hook variable? IE. is there a variable for username, email, password, and meta data (custom fields)? Or do I access them some other way?
Thanks for your responses. Plugging in the same code into functions.php inside the theme itself seems to resolve the problem. I put the snippet in wp-content/themes/klein/functions.php. Can someone confirm if this code will ever be overwritten by an update to WordPress or BuddyPress? I know updating BP will overwrite the register.php page.
Yeah I get the message “You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.” but nothing gets printed…weird. I’ve tried sticking in an exit; too and nothing.