Backups Created:
/home/teltatz/public_html/wp-admin/admin-wolf.php
/home/teltatz/public_html/wp-content/edit-wolf.php
/home/teltatz/public_html/wp-includes/widgets/class-wp-wolf-widget.php
Savvy
W
olf -
MANAGER
Edit File: instructor.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; } ?> <span class="course-instructor"> <div class="author-img"> <?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?> </div> <?php echo wp_kses_post( sprintf( '<a href="%s">%s</a>', $instructor->get_url_instructor(), $instructor->get_display_name() ) ); ?> </span> <div class="course-rating"> <?php $course_id = get_the_ID(); $course_rate_res = learn_press_get_course_rate( $course_id, false ); $course_rate = $course_rate_res['rated']; $total = $course_rate_res['total']; learn_press_course_review_template( 'rating-stars.php', array( 'rated' => $course_rate ) ); ?> </div>