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

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

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7/code/templates/profile/socials.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7/raw/templates/profile/socials.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/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_socials( $user->get_id() );
if ( empty( $socials ) ) {
	return;
}
?>

<div class="lp-user-profile-socials">
	<?php echo implode( "\n", $socials ); ?>
</div>

```
