Timber Logo

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


Uses get_pages() to retrieve a list pages and returns it as a Timber menu.

Overview #

This class extends Timber\Menu

Methods #

NameReturn TypeSummary/Returns
build()\Timber\PagesMenuInitializes a pages menu.

Class Methods #

build() #

Initializes a pages menu.

build( null $menu, array $args = [] )

Returns: \Timber\PagesMenu

$menunullUnused. Only here for compatibility with the Timber\Menu class.
$argsarrayOptional. Args for wp_list_pages().