wpcf7_akismet_comment_check
Использование
add_filter( 'wpcf7_akismet_comment_check', 'wp_kama_wpcf7_akismet_comment_check_filter', 10, 2 ); /** * Function for `wpcf7_akismet_comment_check` filter-hook. * * @param $spam * @param $comment * * @return */ function wp_kama_wpcf7_akismet_comment_check_filter( $spam, $comment ){ // filter... return $spam; }
- $spam
- -
- $comment
- -
Где вызывается хук
wpcf7_akismet_comment_check
contact-form-7/modules/akismet/akismet.php 232
return apply_filters( 'wpcf7_akismet_comment_check', $spam, $comment );