Use get_the_author_meta()
, this function returns data, it doesn’t display it.
For example:–
<?php $user_email = get_the_author_meta('user_email'); ?>
For more information check it in the codex
Use get_the_author_meta()
, this function returns data, it doesn’t display it.
For example:–
<?php $user_email = get_the_author_meta('user_email'); ?>
For more information check it in the codex