Hey @palstalk,
If you look in my frequently asked questions section there is some details about available hooks.
You could use the exlog_hook_action_authenticated
hook to grab additional fields from the table and do what you want with them. The following example adds additional meta fields in WordPress when they get authenticated.
The hook pulls in the new wordpress user and all the fields grabbed from the external table on the authenticated user.
I haven’t tested this specific example so treat it like pseudo code, but you could do something like this:
function palstalk_exlog_add_additional_user_data($wp_user, $exlog_user_data) {
add_user_meta(
$wp_user->ID, // User ID
'fav_colour', // WP Meta field key
$exlog_user_data['favourite_colour'], // External table data
false // Not unique
);
}
add_action('exlog_hook_action_authenticated', 'palstalk_exlog_add_additional_user_data', 10, 2);
It obviously depends on how you’re using avatars in your WordPress site but this example shows how you can use the hook to work with additional data.
I think I’ve answered your question so I’m going to mark this as resolved. However, if any of this does not make sense, feel free to get back to me.
Thanks,
Tom ??