wp_page_menu WordPress Filter Hook
The wp_page_menu hook is used to display a list of pages in a menu. This hook is typically used in themes to display a menu of pages in the header or sidebar.
apply_filters( 'wp_page_menu', string $menu , array $args ) #
Filters the HTML output of a page-based menu.
Description
See also
Parameters
- $menu
(string)The HTML output.
- $args
(array)An array of arguments. See wp_page_menu() for information on accepted arguments.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |