# Updating Discourse Plugins, taking the first step

**URL:** https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241
**Category:** Development
**Created:** [March 17, 2016, 11:23pm UTC](https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241 "2016-03-17T23:23:47Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [March 18, 2016, 5:06pm UTC](https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241/5 "2016-03-18T17:06:35Z")

</div>

You are going to update to use the new client side [Discourse Plugin API](https://meta.discourse.org/t/a-new-versioned-api-for-client-side-plugins/40051). In particular you will want to use [addPostMenuButton](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/plugin-api.js.es6#L196).

For a larger example complete with backwards compatibility, you can [check out the solved button](https://github.com/discourse/discourse-solved/blob/master/assets/javascripts/discourse/initializers/extend-for-solved-button.js.es6#L114) plugin code.

---

_[View the full topic](https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241)._
