Remove Old Badges and Certificates

Home Forums Legacy Support Support queries Setup issues Remove Old Badges and Certificates

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #348272
    RMA
    Spectator
    Advice how to properly remove badges and certificates from a profile. I have removed badges and also tried deleting them from media but they stil show an imprint in the user profile. See screenshot. https://snipboard.io/olxzmQ.jpg
    #348408
    Veronica
    Moderator
    hi may i know which version you are using of vibebp and wplms plugin
    #348573
    RMA
    Spectator
    WPLMS 4.0
    #348757
    Veronica
    Moderator
    checking on your site
    #348764
    Veronica
    Moderator
    This reply has been marked as private.
    #349092
    RMA
    Spectator
    Thank you. I guess I need to go to each student account and remove old badges for courses no longer offered.
    #349421
    Veronica
    Moderator
    hi the delay in response due to support holiday yes it was the issue but it is fixed in the update the update is not live yet but will be soon
    #349489
    RMA
    Spectator
    Thank you
    #349730
    Veronica
    Moderator
    I am leaving this topic open so after the update, if you got the issue you can confirm here
    #349859
    RMA
    Spectator
    Thanks
    #349904
    Veronica
    Moderator
    appreciate your patience
    #378987
    RMA
    Spectator
    Checking back on this. Still need to removed old course certificates from students' accounts. https://screencast-o-matic.com/watch/c3VvbXVDZMB
    #378988
    RMA
    Spectator
    I am referring to certificates to which courses no longer exist and certificates are showing without the course title. Just blank.
    #379062
    Anshuman Sahu
    Keymaster
    Please try adding this custom code in your wplms-customizer.php file
    add_filter('bp_course_get_user_certificates',function($certis,$user_id){
    	$certificates=get_user_meta($user_id,'certificates',true); 
    	if(!empty($certificates)){
    		$certis = [];
    		foreach ($certificates as $key => $c) {
    			if(!empty(get_permalink($c))){
    				$certis[]=$c;
    			}
    		}
    		$certificates=$certis;
    	}
    	return $certificates;
    },99,2);
    #379237
    RMA
    Spectator
    Perfect! It worked.
Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Remove Old Badges and Certificates’ is closed to new replies.