# Getting tags from post in plugin 'addPostTransformCallback(...)' function?

**URL:** <https://meta.discourse.org/t/getting-tags-from-post-in-plugin-addposttransformcallback-function/83678>\
**Category:** Development\
**Created:** [March 23, 2018, 8:35pm UTC](https://meta.discourse.org/t/getting-tags-from-post-in-plugin-addposttransformcallback-function/83678 "2018-03-23T20:35:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)\
**Post date:** [March 23, 2018, 10:42pm UTC](https://meta.discourse.org/t/getting-tags-from-post-in-plugin-addposttransformcallback-function/83678/2 "2018-03-23T22:42:22Z")

</div>

I’m working on something similar that applies to any topic with a specific tag. I haven’t found a way to do it with the api at this point, but there is a CSS class for each tag that you can use to make sure you are in a topic with that particular tag:

`$('.tag-tagname').length`

In my scenario, tagname will be something an admin can set in a setting.

---

_[View the full topic](https://meta.discourse.org/t/getting-tags-from-post-in-plugin-addposttransformcallback-function/83678)._
