Method for Adding custom details in course directory page.

Methods used to add the custom detail in course directory page. Optionally try this :

1.Add the following code in wplms_customizer.php and make customization in this function.

   function bp_course_item_view(){
        $filter = apply_filters('bp_course_single_item_view',0);
        $course_classes = apply_filters('bp_course_single_item','course_single_item',get_the_ID());
        <li class="<?php echo $course_classes; ?>" itemscope itemtype="">
            <div class="item-avatar" itemprop="photo">
                <?php bp_course_avatar(); ?>
            <div class="item">
                <div class="item-title"  itemprop="itemreviewed"><?php bp_course_title(); if(get_post_status() != 'publish'){echo '<i> ( '.get_post_status().' ) </i>';} ?></div>
                <div class="item-meta"><?php bp_course_meta(); ?></div>
                <div class="item-desc"><?php bp_course_desc(); ?></div>
                <div class="item-credits">
                    <?php bp_course_credits(); ?>
                <div class="item-instructor">
                    <?php bp_course_instructor(); ?>
                <div class="item-action"><?php bp_course_action() ?></div>
                <?php do_action( 'bp_directory_course_item' ); ?>
            <div class="clear"></div>

2. Display custom content in course directory page .

Add the following function in customizer_class.php

i)Add it in _construct()


ii) add this function outside __construct()

function this_course_block(){
    global $post;
    echo '<div class="course_block">'; 
       //add custom content here
    echo '</div>';
    return 1;