Hide certificates and badges from instructor profile

Please add the given code in your wplms-customizer.php file in wplms-customizer plugin :

add_action('init','wplms_remove_snapshot_for_instructors',11);
function wplms_remove_snapshot_for_instructors(){
    global $bp;
    if(user_can( $bp->displayed_user->id, 'edit_posts')){
        remove_action('bp_before_profile_content','show_profile_snapshot');
    }
}

 

Was this article helpful?

1 Comment

  1. raulgalaviz

    Thank you for the code.
    Is there any way to do this without removing the link CHECK ALL COURSES CREATED BY (autor)?

Leave A Comment?