Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // change number of page numbers in shop loop pagination
- // code goes in functions.php for your child theme
- add_filter( 'woocommerce_pagination_args', 'change_pagination');
- function change_pagination($args) {
- // how many numbers on either the start and the end list edges
- $args['end_size'] = 3;
- // how many numbers to either side of current page, but not including current page.
- $args['mid_size'] = 3;
- return $args;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement