Skip to main content
Timber

You are reading the documentation for Timber v2.x. Switch to the documentation for Timber v1.x.

Timber\​Pagination

Overview #

Methods #

NameReturn TypeSummary/Returns
__construct()Pagination constructor.
get_pagination()arrayGet pagination.

Returns: mixed

Class Methods #

__construct() #

Pagination constructor.

__construct( array $prefs = [], \WP_Query|null $wp_query = null )

NameTypeDescription
$prefsarray
$wp_query\WP_Query or null

get_pagination() #

Get pagination.

get_pagination( array $prefs = [] )

Returns: array mixed

NameTypeDescription
$prefsarray