Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ultimate Member: Social Login – Redirecting to homepage, and not logging in or registering or CSRF tokens/state mismatch
*** If you're using a custom WordPress theme, one of the possible causes of the issue is ' Post Relational Links ' added in the Header
*** ( )
** This feature loads pages in the background process and it causes the register page to load multiple times.
** It reloads the Social Tokens again and causes mismatch session keys during authentication
remove_action('wp_head', 'start_post_rel_link', 10, 0 );
remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment