<?php
add_action(
	'learn-press/after-courses-loop-item', function (){
        learn_press_get_template( 'loop/course/students.php' );
    }, 41
);

/**
 * Instructor 
 */
add_action( 'learn-press/before-courses-loop-item', 'spark_multipurpose_learn_press_instructor' , 1010 );
if(!function_exists('spark_multipurpose_learn_press_instructor')){
    function spark_multipurpose_learn_press_instructor (){
        $course = learn_press_get_course();
        $user_id = get_the_author_meta( 'ID' );
        ?>

        <div class="course-instructor lp-education-instructor" itemscope itemtype="http://schema.org/Person">
            <?php echo get_avatar( $user_id, 50 ); ?>
            <div class="author-contain">
                <div class="value" itemprop="name">
                    <?php
                    if($course){
                        echo $course->get_instructor_html();
                    }
                    ?>
                </div>
            </div>
        </div>
        <?php
    }
}