user-name.php

Source code

<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
?>
<span><?php echo esc_html( $user->get_display_name() ); ?></span>