| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/aecm.ihu.gr/wp-content/plugins/learnpress/templates/loop/course/ |
Upload File : |
<?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>