wp_page_menu_args WordPress Filter Hook

The wp_page_menu_args hook is used to modify the default arguments used when generating the page menu. This can be used to change the order of the pages, or to exclude certain pages from the menu.

apply_filters( 'wp_page_menu_args', array $args ) #

Filters the arguments used to generate a page-based menu.


Description

Top ↑

See also


Top ↑

Parameters

$args

(array)An array of page menu arguments. See wp_page_menu() for information on accepted arguments.


Top ↑

Source

File: wp-includes/post-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.