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

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

- Page: https://pluginprobe.com/plugins/learnpress/4.4.0/code/templates/profile/header/user-name.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.0/raw/templates/profile/header/user-name.php
- Modified: 2024-08-10T07:01:34+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.4.0/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

```
