Add ability to remove badge in myCred.
$10-30 CAD
着払い
I have a customization on myCred plugin that allows users to pick from a list of badges to display on their profile according to the amount of points they earned.
I need someone to add simple code that will also give users the option to remove a badge from the frontend if they choose to not display it or want to replace it with another. I have some simple instructions from the myCred plugin author on how to do this:
"To remove a badge, you just have to remove the connection for that user.
You can remove a badge using for example delete_user_meta:
$user_id = 1;
$badge_id = 124;
delete_user_meta( $user_id, 'mycred_badge' . $badge_id );
This will remove the badge for user 1 and no one else."
Easy, quick task.
プロジェクトID: #10424296