# Updating Discourse Plugins, taking the first step

**URL:** https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241
**Category:** Development
**Created:** [3월 17, 2016, 11:23오후 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:** 9

<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: [3월 18, 2016, 7:06오후 UTC](https://meta.discourse.org/t/updating-discourse-plugins-taking-the-first-step/41241/9 "2016-03-18T19:06:12Z")

</div>

Ah, thanks for the clarification. You can actually use `api.attachWidgetAction` to overwrite a widget’s action too:

```plaintext
api.attachWidgetAction('post-menu', 'like', () => {
  console.log('new like code goes here');
});

```

---

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