comment_flood_message
Filters the comment flood error message.
Использование
add_filter( 'comment_flood_message', 'wp_kama_comment_flood_message_filter' ); /** * Function for `comment_flood_message` filter-hook. * * @param string $comment_flood_message Comment flood error message. * * @return string */ function wp_kama_comment_flood_message_filter( $comment_flood_message ){ // filter... return $comment_flood_message; }
- $comment_flood_message(строка)
- Comment flood error message.
Список изменений
С версии 5.2.0 | Введена. |
Где вызывается хук
comment_flood_message
wp-includes/comment.php 929
$comment_flood_message = apply_filters( 'comment_flood_message', __( 'You are posting comments too quickly. Slow down.' ) );
wp-includes/comment.php 769
$comment_flood_message = apply_filters( 'comment_flood_message', __( 'You are posting comments too quickly. Slow down.' ) );