akismet_comment_check_response

akismet_comment_check_response

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('akismet_comment_check_response') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet.php line 368
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    $comment = apply_filters( 'akismet_request_args', $comment, 'comment-check' );
     
    $response = self::http_post( self::build_query( $comment ), 'comment-check' );
     
    do_action( 'akismet_comment_check_response', $response );
     
    $commentdata['comment_as_submitted'] = array_intersect_key( $comment, self::$comment_as_submitted_allowed_keys );
     
    // Also include any form fields we inject into the comment form, like ak_js
    foreach ( $_POST as $key => $value ) {
        if ( is_string( $value ) && strpos( $key, 'ak_' ) === 0 ) {