function edit_picture_url ($userdata, $profile, $redirect)
{
if (strtolower ($profile->source->name) == 'facebook') {
$picture = str_replace ('?type=large', '?width=200&height=200', get_user_meta ($userdata->ID, 'oa_social_login_user_picture', true));
update_user_meta ($userdata->ID, 'oa_social_login_user_picture', $picture);
error_log ('Modified: '. $picture .', '. $thumbnail .' -- EDIT_PICTURE_URL');
}
}
add_action('oa_social_login_action_before_user_redirect', 'edit_picture_url', 10, 3);
You can change the 200 values to something else.Please sign in to your OneAll account to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.
Answers