WordPress.org

Ready to get started?Download WordPress

Forums

BadgeOS
[resolved] Changing Achievement Type name wipes out badges (3 posts)

  1. oddmonster
    Member
    Posted 4 months ago #

    Anyone else having this happen?

    I created a new Achievement Type, wrote six badges for it, went back in and changed the name of the Achievement Type and immediately lost all six badges. Is this a known issue?

    I was able to replicate it happening on two different installations.

    https://wordpress.org/plugins/badgeos/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 4 months ago #

    This is technically not a *bug* but it is a limitation that trickles back into WordPress core. We use Custom Post Types for achievements, and when you rename a slug of a Post Type after you've created some, the values in the database don't also get updated. So the achievements you've made aren't lost, they just no longer match the slugs in the database.

    We don't presently have a way to keep this coordinated with BadgeOS but should probably be considered in a future release. I'm seeing achievement renaming come up more often lately.

    The only solution I can think of right now is manual updating in the database for the posts in question.

  3. Michael Beckwith
    Member
    Plugin Author

    Posted 2 months ago #

    We have added the ability to migrate between achievement names including updating all of the available achievements AND already awarded achievements to the user in 1.4.0

    Check the 1.4.0 changelog to see everything new that's been added with this latest version.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags