The contact-form-7 wpcf7 akismet comment check hook.
Published Date - July 22, 2023
return apply_filters( 'wpcf7_akismet_comment_check', $spam, $comment );
$spam
$comment
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)
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 );