From 317acd5b4fcb40401a45bb6ba5f0a1c9bbb5ddff Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 22 Jul 2020 12:09:43 +0600 Subject: [PATCH] filter added for Pagination format --- includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index b3f3ed05..cca933b8 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -378,11 +378,12 @@ function wpt_per_item_fragment($fragments) function wpt_paginate_links( $args = false ){ $html = false; if( $args ){ + $format = apply_filters( 'wpto_pagination_format', '?paged=%#%', $args ); $product_loop = new WP_Query($args); $big = 99999999; $paginate = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), - 'format' => '?paged=%#%', + 'format' => $format, 'mid_size' => 3, 'prev_next' => false, 'current' => max( 1, $args['paged'] ),