# wp-ultimate-post-grid/4.0.1/includes/public/class-wpupg-pagination.php

WP Ultimate Post Grid, version 4.0.1. 41 lines.

- Page: https://pluginprobe.com/plugins/wp-ultimate-post-grid/4.0.1/code/includes/public/class-wpupg-pagination.php
- Raw: https://pluginprobe.com/plugins/wp-ultimate-post-grid/4.0.1/raw/includes/public/class-wpupg-pagination.php
- Modified: 2020-01-24T07:47:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-ultimate-post-grid/4.0.1/code/includes/public/class-wpupg-pagination.php#L10-L20`.

```php
<?php
/**
 * Responsible for grid pagination.
 *
 * @link       https://bootstrapped.ventures
 * @since      3.0.0
 *
 * @package    WP_Ultimate_Post_Grid
 * @subpackage WP_Ultimate_Post_Grid/includes/public
 */

/**
 * Responsible for grid pagination.
 *
 * @since      3.0.0
 * @package    WP_Ultimate_Post_Grid
 * @subpackage WP_Ultimate_Post_Grid/includes/public
 * @author     Brecht Vandersmissen <brecht@bootstrapped.ventures>
 */
class WPUPG_Pagination {
	/**
	 * Get pagination defaults.
	 *
	 * @since    3.0.0
	 * @param	 mixed $type Optional pagination type to get the defaults for.
	 */
	public static function get_defaults( $type = false ) {
		$defaults = apply_filters( 'wpupg_pagination_defaults', array() );

		if ( false === $type ) {
			return $defaults;
		} else {
			if ( isset( $defaults[ $type ] ) ) {
				return $defaults[ $type ];
			} else {
				return false;
			}
		}
	}
}

```
