# How to process migrated content?

**URL:** https://meta.discourse.org/t/how-to-process-migrated-content/52052
**Category:** Migration
**Created:** [2016年十月26日 15:29 UTC](https://meta.discourse.org/t/how-to-process-migrated-content/52052 "2016-10-26T15:29:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mrded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrded/32/62438_2.png) [@mrded](https://meta.discourse.org/u/mrded)
#### Post date: [2016年十月26日 15:29 UTC](https://meta.discourse.org/t/how-to-process-migrated-content/52052/1 "2016-10-26T15:29:21Z")

</div>

Hello,

I’m trying to import content into Discourse using `/script/import_scripts/base.rb`, and I found that after creating a post `created_post(post)` is called.

```
def created_post(post)
  # override if needed
end

```

That is very nice, because I can trigger some post-migration things.

Unfortunately you have it only for posts. Can I ask you to implement something similar for `Users`, `Topics`, `Categories`, etc?

I made a pull request here: [Allow to process imported content. (add additional callbacks) by mrded · Pull Request #4515 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4515)

Thanks.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2016年十月26日 16:06 UTC](https://meta.discourse.org/t/how-to-process-migrated-content/52052/2 "2016-10-26T16:06:42Z")

</div>

Thanks, it’s merged.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2023年三月2日 16:09 UTC](https://meta.discourse.org/t/how-to-process-migrated-content/52052/3 "2023-03-02T16:09:49Z")

</div>


