| 2581 | | * @param string|array $args Optional. Override defaults. |
| | 2581 | * @param string|array $args { |
| | 2582 | * Optional. Override defaults. |
| | 2583 | * |
| | 2584 | * @type string $base Base of the paginated url. Default is empty string. |
| | 2585 | * @type string $format Format for the pagination structure. Default is empty string. |
| | 2586 | * @type int $total The total amount of pages. Default is WP_Query's max_num_pages or 1. |
| | 2587 | * @type int $current The current page number. Default is 'paged' query var or 1. |
| | 2588 | * @type bool $show_all Whether to show all pages. Default is false. |
| | 2589 | * @type int $end_size How many numbers on either the start and the end list edges. |
| | 2590 | * Default is 1. |
| | 2591 | * @type int $mid_size How many numbers to either side of the current pages. |
| | 2592 | * Default is 2. |
| | 2593 | * @type bool $prev_next Whether to include the previous and next links in the list or not. |
| | 2594 | * Default is true. |
| | 2595 | * @type bool $prev_text The previous page text. Default: __( '« Previous' ). |
| | 2596 | * @type bool $next_text The next page text. Default: __('« Previous'). |
| | 2597 | * @type string $type Controls format of the returned value. Possible values are 'plain', |
| | 2598 | * 'array' and 'list'. Default is 'plain'. |
| | 2599 | * @type array $add_args An array of query args to add. Default is false. |
| | 2600 | * @type string $add_fragment A string to append to each link. Default is empty. |
| | 2601 | * @type string $before_page_number A string to appear before the page number. Default is none. |
| | 2602 | * @type string $after_page_number A string to append after the page number. Default is none. |
| | 2603 | * } |