PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | templates/loop/course/instructor.php +10 -4 4.1.6.9.44.4.8 View file →
@@ -5,9 +5,9 @@
5 5 * This template can be overridden by copying it to yourtheme/learnpress/loop/course/instructor.php.
6 6 *
7 7 * @author ThimPress
8 8 * @package Learnpress/Templates
9 - * @version 4.0.0
9 + * @version 4.0.1
10 10 */
11 11
12 12 defined( 'ABSPATH' ) || exit();
13 13
@@ -14,9 +14,15 @@
14 14 $course = learn_press_get_course();
15 15 if ( ! $course ) {
16 16 return;
17 17 }
18 +
19 +$author_id = $course->get_author( 'id' );
20 +$instructor = learn_press_get_user( $author_id );
21 +if ( ! $instructor ) {
22 + return;
23 +}
18 24 ?>
19 25
20 -<span class="course-instructor">
21 - <?php echo wp_kses_post( $course->get_instructor_html() ); ?>
22 -</span>
26 +<div class="course-instructor">
27 + <?php echo wp_kses_post( sprintf( '<a href="%s">%s</a>', $instructor->get_url_instructor(), $instructor->get_display_name() ) ); ?>
28 +</div>