Skip to content

Instantly share code, notes, and snippets.

@tamarazuk
Created September 15, 2015 21:16
Show Gist options
  • Save tamarazuk/3aa59d321a5d344a2e28 to your computer and use it in GitHub Desktop.
Save tamarazuk/3aa59d321a5d344a2e28 to your computer and use it in GitHub Desktop.
WooCommerce Social Login - Request user location from Facebook
function sv_wc_social_login_facebook_user_location( $config ) {
$config['scope'] = $config['scope'] . ', user_location';
return $config;
}
add_filter( 'wc_social_login_facebook_opauth_config', 'sv_wc_social_login_facebook_user_location' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment