# איך לקשט פוסט לפני שהוא מבושל?

**URL:** <https://meta.discourse.org/t/how-to-decorate-a-post-before-its-cooked/182052>\
**Category:** Development\
**Created:** [4 במרץ,‏ 2021,‏ 3:49pm UTC](https://meta.discourse.org/t/how-to-decorate-a-post-before-its-cooked/182052 "2021-03-04T15:49:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Heddson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heddson/32/96742_2.png) [@Heddson](https://meta.discourse.org/u/Heddson)\
**Post date:** [4 במרץ,‏ 2021,‏ 3:49pm UTC](https://meta.discourse.org/t/how-to-decorate-a-post-before-its-cooked/182052/1 "2021-03-04T15:49:46Z")

</div>

I’m writing a theme component and would like to decorate/change the posts just _before_ they’re cooked. How can I get ahold of the uncooked post/text (for the post that’s about to be cooked/shown)?

I read the “Developer’s guide to Discourse Themes” and found that I could modify the cooked post by using the pluginAPI methods _decorateCooked/decorateCookedElement_ and _addPostTransformCallback_, but didn’t find how to get it before it was cooked.

I also looked at the controllers and components, but without any luck.

---

_[View the full topic](https://meta.discourse.org/t/how-to-decorate-a-post-before-its-cooked/182052)._
