comment_flood_trigger
Fires before the comment flood message is triggered.
Usage
add_action( 'comment_flood_trigger', 'wp_kama_comment_flood_trigger_action', 10, 2 ); /** * Function for `comment_flood_trigger` action-hook. * * @param int $time_lastcomment Timestamp of when the last comment was posted. * @param int $time_newcomment Timestamp of when the new comment was posted. * * @return void */ function wp_kama_comment_flood_trigger_action( $time_lastcomment, $time_newcomment ){ // action... }
- $time_lastcomment(int)
- Timestamp of when the last comment was posted.
- $time_newcomment(int)
- Timestamp of when the new comment was posted.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
wp-includes/comment.php 918
do_action( 'comment_flood_trigger', $time_lastcomment, $time_newcomment );