Question and answer is powered by AnsPress.io
How can i get author details in auth.php in wordpress?
Get author id and author name in auth.php, use the code below
$author = get_queried_object(); $author_id = $author->ID; $author_name=get_author_name($author_id);