Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:2275838
1 2 3 4 5 6 7 8 9 10
$email = isset($comment->comment_author_email) ? $comment->comment_author_email : null;
if ( !$email && !is_integer($id_or_email) ) {
$email = $id_or_email;
}
if ( !$email && is_integer($id_or_email) ) {
$user = get_userdata($id_or_email);
$email = $user->user_email;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.