Support » Plugin: External Login » Avatar

  • Resolved palstalk


    This is a fantastic plugin! Thank you.

    Just one feature request if it can be done or if you can please guide me.

    I would like to also have the users Avatars imported, can this be done?

    Everything else is perfect.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author tbenyon


    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) {
        $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.


    Tom 🙂

    Thread Starter palstalk


    Thank you so much for this.

    I just wish I could implement it but I am lost, sorry.

    Do you offer any custom work?

    Plugin Author tbenyon


    Apologies @palstalk but WordPress forbids offering private work through the forum.

    This should be work that any WordPress developer can easily pick up and of course if there are any questions specific to this plugin I am more than happy to support them in the forum.

    Sorry I cannot be of more help.

    Kind regards,


    Thread Starter palstalk


    Ahh I am sorry for that. I’m not a WP developer just wanting to offer a games arcade to my members who use a none WordPress community. If you can please let me know which file I add the code to that would be great. Also where do I donate? Thank you.

    Plugin Author tbenyon


    So for your avatar stuff you may already have something in place but there may also be plugins out there that can help you. I’m sure a Google will get you there.

    If you’re not familiar with development this plugin will probably help you add the code snippet more easily:

    If I were doing it, I’d create a single page plugin to house the code but this should work fine for you.

    If the plugin is doing everything you need I’d be grateful if you could write a review or even buy me a beer.

    Thanks @palstalk,


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Avatar’ is closed to new replies.