//Handle data retrieved from a social network profile function oa_social_login_store_extended_data ($user_data, $identity) { // $user_data is an object that represents the newly added user // The format is similar to the data returned by $user_data = get_userdata ($user_id); // $identity is an object that contains the full social network profile //Example to store the gender update_user_meta ($user_data->ID, 'gender', $identity->gender); } //This action is called whenever Social Login adds a new user add_action ('oa_social_login_action_after_user_insert', 'oa_social_login_store_extended_data', 10, 2);