comment_flood_message

comment_flood_message

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('comment_flood_message') is found 2 times:

  • /wp-includes/comment.php line 769
    	);
    
    	if ( $is_flood ) {
    		/** This filter is documented in wp-includes/comment-template.php */
    		$comment_flood_message = apply_filters( 'comment_flood_message', __( 'You are posting comments too quickly. Slow down.' ) );
    
    		return new WP_Error( 'comment_flood', $comment_flood_message, 429 );
    	}
    
    	if ( ! empty( $commentdata['user_id'] ) ) {
    		$user        = get_userdata( $commentdata['user_id'] );
    
  • /wp-includes/comment.php line 929
    				 * @since 5.2.0
    				 *
    				 * @param string $comment_flood_message Comment flood error message.
    				 */
    				$comment_flood_message = apply_filters( 'comment_flood_message', __( 'You are posting comments too quickly. Slow down.' ) );
    
    				if ( wp_doing_ajax() ) {
    					die( $comment_flood_message );
    				}
    
    				wp_die( $comment_flood_message, 429 );