WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] 'Development' mode for plugins? (3 posts)

  1. benallfree
    Member
    Posted 1 year ago #

    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/

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    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?

  3. benallfree
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.