I have integrated buddypress in my wordpress theme. i need to get user id when buddypress completes user registration successfully like what we usually do wp_insert_user( $userdata ) which returns user id when user information is successfully inserted..so how do i get user id?

its urgent..pleas help.

Thanks in advance.


if you put this action you will get the new user_id that wordpress provide when new user register

function bp_autologin_on_activation($user_id,$key,$user) {



I hope help

Not the answer you're looking for? Browse other questions tagged or ask your own question.