# Bump Reset plugin - Annotated to help new devs

**URL:** <https://meta.discourse.org/t/bump-reset-plugin-annotated-to-help-new-devs/57097>\
**Category:** Plugin\
**Created:** [February 7, 2017, 11:03pm UTC](https://meta.discourse.org/t/bump-reset-plugin-annotated-to-help-new-devs/57097 "2017-02-07T23:03:13Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [October 11, 2023, 9:26pm UTC](https://meta.discourse.org/t/bump-reset-plugin-annotated-to-help-new-devs/57097/12 "2023-10-11T21:26:38Z")

</div>

The [`post-admin-menu`](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/widgets/post-admin-menu.js) widget has been “removed” recently in favor of a glimmer component here [`admin-post-menu.gjs`](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/admin-post-menu.gjs).

[https://github.com/discourse/discourse/pull/23650](https://github.com/discourse/discourse/pull/23650)

The proper way to add a button is to use the `addPostAdminMenuButton` API instead:

```js
	api.addPostAdminMenuButton((name, attrs) => {
		return {
			action: (post) => {
				const ajaxParams = {
					type: 'POST',
					data: { post_id: post.id }
				};

				ajax("/reset_bump", ajaxParams).catch(popupAjaxError);
			},
			icon: 'calendar-times',
			className: 'reset-bump',
			label: 'reset_bump.button_label',
		};
	});

```

---

_[View the full topic](https://meta.discourse.org/t/bump-reset-plugin-annotated-to-help-new-devs/57097)._
