Control Badges and Certificates Visibility in Profile section

Add the following line in the WPLMS Customizer plugin , customizer_class.php

Add the below line in the function _construct

PHP Code:
add_action('bp_init',array($this,'manage_profile_snapshot'));

 

Add following function in the class:

PHP Code:
function manage_profile_snapshot(){
    if(!current_user_can('edit_posts') && !bp_is_my_profile())
        remove_action('bp_before_profile_content','show_profile_snapshot');
}