• Resolved Ulrich

    (@ulrichboehm)


    Hey,
    thank you for your plugin. I found it two days ago while I tried to create a new project.
    I use a few of your hooks/actions but while using ‘postie_comment_after’ I really missed the comment id which was created two lines above this hook. With the comment array it’s nearly impossible (only with the post id -> get all comments -> compare with current comment content -> get id) to get the correct comment id.
    Instead of providing the comment array it would be a better solution to just provide the comment id. But to not break already implemented code based on the current version, I modified the hook line from
    do_action('postie_comment_after', $comment);
    to
    do_action('postie_comment_after', $comment, $post_ID);
    Now you have access to the comment id as a second parameter.
    Perhaps you want to update your code to reflect this change.

    Thank you for your work.

    Best regards,
    Ulrich

Viewing 1 replies (of 1 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Interesting idea. I’ll include this in a future version.

    You can also get this info by calling get_comment in your custom action.

Viewing 1 replies (of 1 total)

The topic ‘Action ‘postie_comment_after’ missing comment_id’ is closed to new replies.