Okay
  Public Ticket #3120014
WPLMS 4.4 app dashboard
Closed

Comments

  •  12
    MeesterGijs started the conversation

    Hello,

    When I'm at this page I see all the quizzes that I've done. But I can't see from which course they are. I can't change the quiz title because it becomes way too long.. Is it possible to add  the course to each quiz tile? Just like we see the black category tile..

    Thanks,

    Gijs

  • [deleted] replied

    add this code in your wplms-customizer.php file in wplms customizer plugin : 


    add_filter('wplms_get_student_mmy_course_tabs',function($tabs){


    unset($tabs[3]);
    unset($tabs[4]);

    $tabs = array_values($tabs)
    return $tabs;
    });


  •  12
    MeesterGijs replied

    I get this error: 

    syntax error, unexpected 'return' (T_RETURN)
    

    I added a semi colon here: 

    $tabs = array_values($tabs);
    

    That fixed the error. But I didn't see any changes. Can you share a screenshot of what it should be? And maybe have a look at the code again..

    Thanks,

    Gijs

  • [deleted] replied

    Well im sorry the course of the quiz cannot be shown there as of now . 


  •  12
    MeesterGijs replied

    Ok, then how do I delete that complete segment?

  • [deleted] replied

    add this code in your wplms-customizer.php file in wplms customizer plugin : 


    function bp_remove_nav_tabs() {

    bp_core_remove_subnav_item('course', 'quiz_results' );

    }

    add_action( 'bp_setup_nav', 'bp_remove_nav_tabs', 15 );


  •  12
    MeesterGijs replied

    Deleted! Thanks,

    Let's close