# learnpress/4.3.8/templates/profile/header/user-name.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.3.8. 23 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.3.8/code/templates/profile/header/user-name.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.3.8/raw/templates/profile/header/user-name.php
- Modified: 2026-06-01T03:47:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.3.8/code/templates/profile/header/user-name.php#L10-L20`.

```php
<?php
/**
 * Template for displaying profile username.
 *
 * @author  ThimPress
 * @package LearnPress/Templates
 */

defined( 'ABSPATH' ) || exit;

$profile = LP_Profile::instance();
$user    = $profile->get_user();

if ( ! isset( $user ) ) {
	return;
}

?>
	<h2 class="lp-profile-username">
		<?php echo wp_kses_post( $user->get_display_name() ); ?>
	</h2>
<?php

```
