diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index a84ffce694..70c92d6571 100644
--- a/src/wp-includes/general-template.php
+++ b/src/wp-includes/general-template.php
@@ -4357,6 +4357,39 @@ function paginate_links( $args = '' ) {
 			break;
 	}
 
+	/**
+	 * Filters the HTML output of `paginate_links`.
+	 *
+	 * @since 5.7.0
+	 *
+	 * @param string $r HTML output.
+	 * @param string|array $args {
+	 *     Optional. Array or string of arguments for generating paginated links for archives.
+	 *
+	 *     @type string $base               Base of the paginated url. Default empty.
+	 *     @type string $format             Format for the pagination structure. Default empty.
+	 *     @type int    $total              The total amount of pages. Default is the value WP_Query's
+	 *                                      `max_num_pages` or 1.
+	 *     @type int    $current            The current page number. Default is 'paged' query var or 1.
+	 *     @type string $aria_current       The value for the aria-current attribute. Possible values are 'page',
+	 *                                      'step', 'location', 'date', 'time', 'true', 'false'. Default is 'page'.
+	 *     @type bool   $show_all           Whether to show all pages. Default false.
+	 *     @type int    $end_size           How many numbers on either the start and the end list edges.
+	 *                                      Default 1.
+	 *     @type int    $mid_size           How many numbers to either side of the current pages. Default 2.
+	 *     @type bool   $prev_next          Whether to include the previous and next links in the list. Default true.
+	 *     @type bool   $prev_text          The previous page text. Default '&laquo; Previous'.
+	 *     @type bool   $next_text          The next page text. Default 'Next &raquo;'.
+	 *     @type string $type               Controls format of the returned value. Possible values are 'plain',
+	 *                                      'array' and 'list'. Default is 'plain'.
+	 *     @type array  $add_args           An array of query args to add. Default false.
+	 *     @type string $add_fragment       A string to append to each link. Default empty.
+	 *     @type string $before_page_number A string to appear before the page number. Default empty.
+	 *     @type string $after_page_number  A string to append after the page number. Default empty.
+	 * }
+	 */
+	$r = apply_filters( 'paginate_links_output', $r, $args );
+
 	return $r;
 }
 
