Skip to content

Instantly share code, notes, and snippets.

@ooooak
Created December 4, 2014 09:59
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 ooooak/3f38100e18a4fecfda69 to your computer and use it in GitHub Desktop.
Save ooooak/3f38100e18a4fecfda69 to your computer and use it in GitHub Desktop.
if (!wp_check_password($pass, $user->get('user_pass'), $user->get('id'))){
return false;
}
$user = wp_signon(array(
'user_login' => $login,
'user_password' => $pass,
));
if (is_wp_error($user)){
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment