Skip to content

Instantly share code, notes, and snippets.

@dbspringer
Created January 2, 2015 18:56
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 dbspringer/bd4910b09501effb3949 to your computer and use it in GitHub Desktop.
Save dbspringer/bd4910b09501effb3949 to your computer and use it in GitHub Desktop.
How to add OpenID authentication for your self-hosted WordPress site.
add_action( 'wp_head', 'openid_delegate' );
function openid_delegate() {
echo <<<HTML
<!-- OpenID Delegation -->
<link rel="openid.server" href="https://yoursite.wordpress.com/?openidserver=1">
<link rel="openid.delegate" href="https://yoursite.wordpress.com/">
HTML;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment