WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
524 | * comments that could have been checked by Akismet. Allow these comments |
525 | * to be excluded from the "approved comment count" query in order to |
526 | * avoid artificially inflating the approved comment count. |
527 | * |
528 | * @param array $comment_types An array of comment types that won't be considered |
529 | * when counting a user's approved comments. |
530 | * |
531 | * @since 4.2.2 |
532 | */ |
533 | $excluded_comment_types = apply_filters( 'akismet_excluded_comment_types', array() ); |
534 |
|
535 | $comment_type_where = ''; |
536 |
|
537 | if ( is_array( $excluded_comment_types ) && ! empty( $excluded_comment_types ) ) { |
538 | $excluded_comment_types = array_unique( $excluded_comment_types ); |
539 |
|
540 | foreach ( $excluded_comment_types as $excluded_comment_type ) { |
541 | $comment_type_where .= $wpdb->prepare( ' AND comment_type <> %s ', $excluded_comment_type ); |
542 | } |