Skip to content

@rickard2 /gist:2275838
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
$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.