# learnpress/4.1.7.3/templates/single-course/tabs/instructor.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.7.3. 88 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7.3/code/templates/single-course/tabs/instructor.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7.3/raw/templates/single-course/tabs/instructor.php
- Modified: 2022-11-02T07:32:08+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.3/code/templates/single-course/tabs/instructor.php#L10-L20`.

```php
<?php
/**
 * Template for displaying instructor of single course.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/single-course/instructor.php.
 *
 * @author   ThimPress
 * @package  Learnpress/Templates
 * @version  3.3.0
 */

defined( 'ABSPATH' ) || exit();

$course = learn_press_get_course();
if ( ! $course ) {
	return;
}
/**
 * @var LP_User
 */
$instructor = $course->get_instructor();
?>

<div class="course-author">

	<?php do_action( 'learn-press/before-single-course-instructor' ); ?>

	<div class="lp-course-author">
		<div class="course-author__pull-left">
			<?php echo wp_kses_post( $instructor->get_profile_picture() ); ?>

			<?php $socials = $instructor->get_profile_socials( $instructor->get_id() ); ?>
			<?php if ( $socials ) : ?>
				<div class="author-socials">
					<?php echo wp_kses_post( implode( '', $socials ) ); ?>
				</div>
			<?php endif; ?>
		</div>

		<div class="course-author__pull-right">
			<div class="author-title"><?php echo wp_kses_post( $course->get_instructor_html() ); ?></div>
			<div class="author-description margin-bottom">

				<?php
				/**
				 * LP Hook
				 *
				 * @since 4.0.0
				 */
				do_action( 'learn-press/begin-course-instructor-description', $instructor );

				echo wp_kses_post( $instructor->get_description() );

				/**
				 * LP Hook
				 *
				 * @since 4.0.0
				 */
				do_action( 'learn-press/end-course-instructor-description', $instructor );

				?>
			</div>

			<?php
			/**
			 * LP Hook
			 *
			 * @since 4.0.0
			 */
			do_action( 'learn-press/after-course-instructor-description', $instructor );
			?>

			<?php

			/**
			 * LP Hook
			 *
			 * @since 4.0.0
			 */
			do_action( 'learn-press/after-course-instructor-socials', $instructor );

			?>
		</div>
	</div>
	<?php do_action( 'learn-press/after-single-course-instructor' ); ?>

</div>

```
