Title: [Plugin: WP-Activity] Custom post type support?
Last modified: August 20, 2016

---

# [Plugin: WP-Activity] Custom post type support?

 *  [stl99](https://wordpress.org/support/users/stl99/)
 * (@stl99)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/)
 * Hi,
 * Thanks for the plugin!!
 * I really like the export feature of your plugin but I need to track custom post
   types as wells – any chance you will add this anytime soon? Is there maybe a 
   hack available until then?
 * Cheers,
    Thomas
 * [http://wordpress.org/extend/plugins/wp-activity/](http://wordpress.org/extend/plugins/wp-activity/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/#post-2700430)
 * Hey stl99,
 * I was wondering that too. Apparently this code on your functions file should 
   do the trick:
 *     ```
       add_action('publish_{$post-type}', 'act_post_add');
       add_action('{$post-type}_updated', 'act_post_update');
       add_action('delete_{$post-type}', 'act_post_del');
       ```
   
 * But for some reason it creates a duplicate entry for **publish**, no entry for**
   updated** and the **delete** works fine.
 * Any ideas?
 *  [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/#post-2700431)
 * Oh, and {$post-type} should be replaced with your custom post type
 *  Plugin Author [Dric](https://wordpress.org/support/users/dric1107/)
 * (@dric1107)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/#post-2700438)
 * Hi,
 * It seems like there is no action hook for modified custom type posts.
    I still
   can’t understand why custom type posts are not processed the same way as regular
   posts.
 * [@miguel](https://wordpress.org/support/users/miguel/) : Do you know in wich 
   WordPress file is the do_action(‘publish_{$post-type}’) ? I can’t find it.
 *  [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/#post-2700440)
 * Hi Dric,
 * The action hook is actually this one:
    add_action(‘{$new_status}_{$post->post_type}’,‘
   your_function’);
 * It’s suppose to work just like the **post** action hook (used in WP-Activity).
   Still looking for a solution.
 *  [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/#post-2700441)
 * More info: [http://adambrown.info/p/wp_hooks/hook/%7B$new_status%7D_%7B$post-%3Epost_type%7D](http://adambrown.info/p/wp_hooks/hook/%7B$new_status%7D_%7B$post-%3Epost_type%7D)
 *  Plugin Author [Dric](https://wordpress.org/support/users/dric1107/)
 * (@dric1107)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/#post-2700442)
 * I found the code :
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   The maximum number of lines of code that you can post in these forums is **ten
   lines**. Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * With ‘transition_post_status’ action, I should be able to handle custom type 
   posts as well as regular posts.
    But for updated custom type posts…
 *  [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/#post-2700491)
 * Any news on this matter?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: WP-Activity] Custom post type support?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-activity_4dc5ec.svg)
 * [WP-Activity](https://wordpress.org/plugins/wp-activity/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-activity/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-activity/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-activity/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-activity/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-activity/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-activity-custom-post-type-support/#post-2700491)
 * Status: not resolved