Hide Badges and Certificates from Other Users

This tip is for restricting the users to see the badges and certificates of another users.

Please follow this simple step:

  1. Please Paste the below code in wplms-customizer.php file present in your wplms customizer plugin.
add_action('init','custom_hide_certificate_badge');
function custom_hide_certificate_badge(){
  if(!(is_user_logged_in() && bp_is_my_profile())){
    remove_action('bp_before_profile_content','show_profile_snapshot');
  }
}

 

Was this article helpful?

Related Articles

Leave A Comment?