Skip to content

Commit

Permalink
filter added for Pagination format
Browse files Browse the repository at this point in the history
  • Loading branch information
codersaiful committed Jul 22, 2020
1 parent eab0d3d commit 317acd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ),
Expand Down

0 comments on commit 317acd5

Please sign in to comment.