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 wp-user-manager/717560ce88b91f577a27b9a1bf3e1e3d to your computer and use it in GitHub Desktop.
Save wp-user-manager/717560ce88b91f577a27b9a1bf3e1e3d to your computer and use it in GitHub Desktop.
WP User Manager - Send URL query strings through the social login flow
<?php
add_filter( 'wpum_login_redirect_to_url', function ( $url ) {
if ( ! empty( $_SERVER['QUERY_STRING'] ) ) {
$url .= urlencode( '?' . $_SERVER['QUERY_STRING'] );
}
return $url;
} );
@wp-user-manager
Copy link
Author

Requires WPUM v2.8.2. Save this file to your /wp-content/mu-plugins/ directory (you might need to create the mu-plugins directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment