I have a hook into the WordPress Add New User process via an
add_action('user_register', 'doMyFunction'); hook.
What results is that I am (Step 1) adding a new user through WordPress and then (Step 2) having to add the same user to BuddyPress in order to get the user fully activated in WP/BP with the proper role.
I would prefer to just add a new user/member once through the Buddy Press Add User page and have it go through my hooked function.
Is there a Buddypress hook I should change too on the hook I show above in order to eliminate the 1st step described in my process?
Thanks for helping.
Expanding for better clarity
We do not use the BuddyPress signup process. We (as an Admin) setup new users ourselves. The reason is we have our own login authentication system that all users must pass through.
So I have hooked into WP's
add_user in order to (1) programmatically capture the user id I am creating and write it externally to our authentication systems' list of vald users and (2) send a custom email to the user newly created.
Then I have to go into the BuddyPress admin page and setup the new user again so I can assign their role and let BP know they are good to go.
I would much rather hook right into BuddyPress' add new user and do my external write and launch my custom email. I have tested and I know that the Add New User in BP adds it to WP as well.
I just don't know what BP's hook is -- the one comparable to WP' s
Hope that clarifies.