get_user_meta() doesn’t include user email?

Question

I simply wonder why <?php var_dump(get_user_meta(4)); ?> doesn’t contain an email address of the user. Instead I have to use

get_userdata(4)->user_email; to query the email of the user.

Why is that or did I miss something? get_user_meta() seems to provide all other aspects and informations of a user, however just not the email-address.

Matt

0
mathiregister 4 months 0 Answers 15 views 0

Leave an answer