unipagination

Pagination.

Description

unipagination( (int) $pages = 1, (int) $paged = 1, (int) $range = 3 ); 

Parameters (3)

0. $pages — Optional. (int) => 1
The pages.
1. $paged — Optional. (int) => 1
The paged.
2. $range — Optional. (int) => 3
The range.

Usage

  1. if ( !function_exists( 'unipagination' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-books-importer/inc/functions.php'; 
  3.  
  4. // The pages. 
  5. $pages = 1; 
  6.  
  7. // The paged. 
  8. $paged = 1; 
  9.  
  10. // The range. 
  11. $range = 3; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = unipagination($pages, $paged, $range); 
  15.  

Defined (1)

The function is defined in the following location(s).

/inc/functions.php