function edit_picture_url ($userdata, $profile, $redirect)
{
$picture = str_replace ('?sz=50', '', get_user_meta ($userdata->ID, 'oa_social_login_user_picture', true));
update_user_meta ($userdata->ID, 'oa_social_login_user_picture', $picture);
$thumbnail = str_replace ('?sz=50', '', get_user_meta ($userdata->ID, 'oa_social_login_user_thumbnail', true));
update_user_meta ($userdata->ID, 'oa_social_login_user_thumbnail', $thumbnail);
// you can add error_log ('changed: '. $picture .', '. $thumbnail); to keep a trace of the changes.
}
add_action('oa_social_login_action_before_user_redirect', 'edit_picture_url', 10, 3);
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