comment_flood_trigger
Fires before the comment flood message is triggered.
Использование
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.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
wp-includes/comment.php 917
do_action( 'comment_flood_trigger', $time_lastcomment, $time_newcomment );