# learnpress/4.3.9/templates/loop/course/instructor.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.3.9. 29 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.3.9/code/templates/loop/course/instructor.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.3.9/raw/templates/loop/course/instructor.php
- Modified: 2026-06-08T02:53:42+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.9/code/templates/loop/course/instructor.php#L10-L20`.

```php
<?php
/**
 * Template for displaying instructor of course within the loop.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/loop/course/instructor.php.
 *
 * @author   ThimPress
 * @package  Learnpress/Templates
 * @version  4.0.1
 */

defined( 'ABSPATH' ) || exit();

$course = learn_press_get_course();
if ( ! $course ) {
	return;
}

$author_id  = $course->get_author( 'id' );
$instructor = learn_press_get_user( $author_id );
if ( ! $instructor ) {
	return;
}
?>

<div class="course-instructor">
	<?php echo wp_kses_post( sprintf( '<a href="%s">%s</a>', $instructor->get_url_instructor(), $instructor->get_display_name() ) ); ?>
</div>

```
