wp-content/themes/twentytwentyone/inc/template-tags.php:221Prints the next and previous posts navigation.
void function twenty_twenty_one_the_posts_navigation() { $order = get_query_var( 'order', 'DESC' ); $new_posts_text = __( 'Newer <span class="nav-short">posts</span>', 'twentytwentyone' ); $old_posts_text = __( 'Older <span class="nav-short">posts</span>', 'twentytwentyone' ); the_posts_pagination( array( 'before_page_number' => esc_html__( 'Page', 'twentytwentyone' ) . ' ', 'mid_size' => 0, 'prev_text' => sprintf( '%s <span class="nav-prev-text">%s</span>', is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ), wp_kses( ( 'DESC' === $order ) ? $new_posts_text : $old_posts_text, array( 'span' => array( 'class' => array(), ), ) ) ), 'next_text' => sprintf( '<span class="nav-next-text">%s</span> %s', wp_kses( ( 'DESC' === $order ) ? $old_posts_text : $new_posts_text, array( 'span' => array( 'class' => array(), ), ) ), is_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ) ), ) ); }Introduced in Twenty Twenty-One 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentytwentyone/inc/template-tags.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.