Viewing 7 replies - 1 through 7 (of 7 total)
  • 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?

    Oh, and {$post-type} should be replaced with your custom post type

    Plugin Author Dric

    (@dric1107)

    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 : Do you know in wich WordPress file is the do_action(‘publish_{$post-type}’) ? I can’t find it.

    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.

    Plugin Author Dric

    (@dric1107)

    I found the code :

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    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…

    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.