I want to call a function to get user_id, user name & email when a new user is created (after user filling username, email at register form & submit). Any a hook can make it? Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
get user’s infomation
do like this:
$current_user variable is a object.
It is instanceof WP_User.
the class of WP_User was provided properties,
you can see it in /wp-include/capabilities.php