# learnpress/4.1.7/templates/profile/header.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.7. 33 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7/code/templates/profile/header.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7/raw/templates/profile/header.php
- Modified: 2022-09-13T03:07:46+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.1.7/code/templates/profile/header.php#L10-L20`.

```php
<?php
/**
 * Template for displaying profile header.
 *
 * @author  ThimPress
 * @package LearnPress/Templates
 * @version 4.0.0
 */

defined( 'ABSPATH' ) || exit;

$profile = LP_Profile::instance();
$user    = $profile->get_user();

if ( ! isset( $user ) ) {
	return;
}

$bio = $user->get_description();
?>
<div class="lp-profile-right">

	<div class="lp-profile-username">
		<?php echo wp_kses_post( $user->get_display_name() ); ?>
	</div>
	<?php if ( $bio ) : ?>
		<div class="lp-profile-user-bio">
			<?php echo wpautop( $bio ); ?>
		</div>

	<?php endif; ?>
</div>

```
