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
See also
Parameters
- $args
(array)An array of page menu arguments. See wp_page_menu() for information on accepted arguments.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |