Land directly on Course Status, Skipping Single Course Page

In Course directory, the status of course is shown, whether the course is completed or not. If you click on that you’ll land on single course page. Again you have to click a button to continue your course.

To bypass this two clicks you need to add the code shared below
Paste this code in wp-admin > Plugins > Editor > WPLMS Customizer Plugin > wplms-customizer.php


function custom_bp_course_single_item_view($x){

global $post;

$course_post_id = $post->ID;

$course_author= $post->post_author;

$course_classes = apply_filters('bp_course_single_item','course_single_item course_id_'.$post->ID.' course_status_'.$post->post_status.' course_author_'.$post->post_author,get_the_ID());


  • ( '.get_post_status().' ) ';} ?>
    ID); if($enable_instructor){ ?>
    $course_author)); ?>
  • Was this article helpful?

    Related Articles


    1. ICHARS

      Will this code also work for links under the “Courses” section on dashboard?

    2. anatomage

      This code does not work for version 3.8.5.
      Please advise the correct code.
      Thank you.

    3. Prince

      This code is not working in my wplms.
      Please advise the correct code.
      Thank you.

    Leave a Reply to Prince Cancel Reply