Viewing 1 replies (of 1 total)
  • Plugin Author Claude

    (@claudeschlesser)

    Hello,

    a hook something like this should do the tricks:

    function oa_social_login_store_xprofile ($user_data, $identity)
    {
    	if ($identity->source->key == 'instagram')
    	{
    		update_user_meta ($user_data->ID, 'instagram_followers', $identity->statistics->followers);
    	}
    }
    add_action( 'oa_social_login_action_after_user_insert', 'oa_social_login_store_xprofile', 10, 2);

    Regards,

Viewing 1 replies (of 1 total)

The topic ‘Instagram followers count’ is closed to new replies.