# Using modifyClass to change core behavior

**URL:** https://meta.discourse.org/t/using-modifyclass-to-change-core-behavior/262064
**Category:** Developer Guides
**Created:** [April 18, 2023, 10:24am UTC](https://meta.discourse.org/t/using-modifyclass-to-change-core-behavior/262064 "2023-04-18T10:24:36Z")
**Posts on this page:** 1
**Showing post:** 26

<div class="post-metadata">

### Author: ![pangbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pangbo/32/538562_2.png) [@pangbo](https://meta.discourse.org/u/pangbo)
#### Post date: [March 4, 2026, 7:13am UTC](https://meta.discourse.org/t/using-modifyclass-to-change-core-behavior/262064/26 "2026-03-04T07:13:43Z")

</div>

The example for `api.modifyClass` in plugin-api.gjs still uses legacy syntax. Perhaps it requires updating?

> <https://github.com/discourse/discourse/blob/9738c429c8603d40f8a5a1b2548bb27f33191cbe/frontend/discourse/app/lib/plugin-api.gjs#L258-L275>

---

_[View the full topic](https://meta.discourse.org/t/using-modifyclass-to-change-core-behavior/262064)._
