Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save champsupertramp/a32ff7cf5b141cd0211dfce256d1eccc to your computer and use it in GitHub Desktop.
Save champsupertramp/a32ff7cf5b141cd0211dfce256d1eccc to your computer and use it in GitHub Desktop.
Ultimate Member Social Login - LinkedIn API backward compatibility
<?php
add_filter( 'um_social_login_linkedin__config', 'um_social_login_linkedin_backward_compatibility__config' );
function um_social_login_linkedin_backward_compatibility__config( $config ) {
$config['provider'] = 'LinkedIn';
$config['scope'] = array( 'r_liteprofile', 'r_emailaddress' ); // Add `w_member_social` in the array if you have the permission to use it.
return $config;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment