comment_flood_filter filter-hook . WP 2.1.0
Filters the comment flood status.
Usage
add_filter( 'comment_flood_filter', 'filter_function_name_868', 10, 3 ); function filter_function_name_868( $bool, $time_lastcomment, $time_newcomment ){ // filter... return $bool; }
- $bool(true/false)
- Whether a comment flood is occurring.
Default: false - $time_lastcomment(int)
- Timestamp of when the last comment was posted.
- $time_newcomment(int)
- Timestamp of when the new comment was posted.
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
wp-includes/comment.php 928
$flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment );
Where in WP core the hook is used WordPress
wp-includes/comment.php 251
add_filter( 'comment_flood_filter', 'wp_throttle_comment_flood', 10, 3 );