comment_flood_message filter-hookWP 5.2.0

Filters the comment flood error message.

Usage

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(string)
Comment flood error message.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

wp_check_comment_flood()
comment_flood_message
wp_allow_comment()
comment_flood_message
wp-includes/comment.php 930
$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.' ) );

Where the hook is used in WordPress

Usage not found.