wpcf7_akismet_comment_check

The contact-form-7 wpcf7 akismet comment check hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_akismet_comment_check', $spam, $comment );

Parameters

  1. $spam

  2. $comment


Usage

The following example is for adding a hook callback.

// define the wpcf7_akismet_comment_check callback 
function custom_wpcf7_akismet_comment_check( $spam, $comment ){ 
   //custom code here
    return $spam
} 

//add the action 
add_filter('wpcf7_akismet_comment_check', 'custom_wpcf7_akismet_comment_check', 10, 2)

Defined

The filter is defined in the following location(s).

contact-form-7/modules/akismet/akismet.php

return apply_filters( 'wpcf7_akismet_comment_check', $spam, $comment );