• Resolved adomasven

    (@adomasven)


    Hi,

    I want to use wordpress actions to attach some functions after the comment checks happen. I am mainly interested in class.akismet.php on line 122:

    `
    do_action( ‘akismet_comment_check_response’, $response );
    `

    The problem is this action does not include the comment_id, which is needed for my intended purposes. Would it be possible to add the comment_id as a second parameter to this (and potentially every other) action?

    Thanks,
    Adomas

    https://wordpress.org/plugins/akismet/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter adomasven

    (@adomasven)

    Hi,

    Any updates on this? I would be willing to submit a patch file, if this received any attention from the developers.

    Actions is a standard piece of functionality in wordpress, which is very flexible and backwards compatible in regards to changes, as can be seen here.

    The actions are there (although after a more careful read of the code, not in every place where they should be), they only need additional parameters to be useful!

    It would be nice to hear the devs opinion on this issue!

    Kind regards,
    Adomas

    Thread Starter adomasven

    (@adomasven)

    After some more investigation into both akismet and wordpress core comment code I realized this wasn’t possible at that stage of the comment submission, neither was it necessary for our intended purposes. Whoops! 🙂

    Thanks,
    Adomas

    Plugin Author Christopher Finke

    (@cfinke)

    Sorry for not responding to this; I never got an email notification for this thread. Glad to hear it’s been semi-resolved though. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress action parameters’ is closed to new replies.