Support » Plugin: Achievements for WordPress » 'Development' mode for plugins?

  • Resolved benallfree

    (@benallfree)


    Hello, I noticed that dpa_maybe_update_extensions() only adds actions to the taxonomy on the 1st install. Are there any recommendations for putting Achievements in “plugin development mode” so I can develop my plugin without continually changing its ID or version #?

    http://wordpress.org/extend/plugins/achievements/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Paul Gibbs

    (@djpaul)

    Hey,

    Super cool to hear your diving into the code, even without any documentation guide. Let me know how you get on! 🙂

    This is an interesting idea for a future improvement, but there’s no neat way right now. Maybe filter the function that returns the version and set it to a constant more conveniently defined inside your plugin?

    benallfree

    (@benallfree)

    That might work. The snag seems to be that actions only get added to the taxonomy on the 1st time a plugin is recognized. So $version[$id] needs to continually change to make it look like a new plugin. But that’s clearly not best to keep changing $id and thus leaving a bunch of old unused taxonomies around.

    I’ll see if I can modify this section to use a “development” mode where the taxonomy is cleared and refreshed each time with the new set of actions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘'Development' mode for plugins?’ is closed to new replies.