# learnpress/4.3.8/templates/profile/socials.php

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

- Page: https://pluginprobe.com/plugins/learnpress/4.3.8/code/templates/profile/socials.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.3.8/raw/templates/profile/socials.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/socials.php#L10-L20`.

```php
<?php
/**
 * Template for displaying user socials
 *
 * @author  ThimPress
 * @package LearnPress/Templates
 * @version 4.0.0
 */

defined( 'ABSPATH' ) || exit;
$user = LP_Profile::instance()->get_user();

if ( ! $user ) {
	return;
}

$socials = $user->get_profile_social( $user->get_id() );
if ( empty( $socials ) ) {
	return;
}
?>

<div class="lp-user-profile-socials">
	<?php echo implode( "\n", $socials ); ?>
</div>

```
