I'm trying to add this code into my theme's function.php
function custom_add_author() {
$author = get_the_author();
echo $author;
}
add_action( '???', 'custom_add_author' );
I wanted to add this function code into the specific php named "author-listing.php"
How can I add this using the correct code? was it?
add_action( 'author-listing.php', 'custom_add_author' );