'change 'mid_size' in paginate_links() via function.php

i want value 'mid_size' = 2; change to 'mid_size' = 1; via function.php

path : /wp-includes/general-template.php

$defaults = array(
    'base'               => $pagenum_link, // http://example.com/all_posts.php%_% : %_% is replaced by format (below).
    'format'             => $format, // ?page=%#% : %#% is replaced by the page number.
    'total'              => $total,
    'current'            => $current,
    'aria_current'       => 'page',
    'show_all'           => false,
    'prev_next'          => true,
    'prev_text'          => __( '« Previous' ),
    'next_text'          => __( 'Next »' ),
    'end_size'           => 1,
    'mid_size'           => 2,
    'type'               => 'plain',
    'add_args'           => array(), // Array of query args to add.
    'add_fragment'       => '',
    'before_page_number' => '',
    'after_page_number'  => '',
);

is it possible to change through the function.php or not?

i tried many ways but it did not answer, please answer these question



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source