comment_flood_message

comment_flood_message

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comment_flood_message') is found 2 times:

  • /wp-includes/comment.php line 771
    	);
    
    	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 );
    	}
    
    	return wp_check_comment_data( $commentdata );
    }
    
  • /wp-includes/comment.php line 879
    				 * @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 );