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

Top ↑

See also


Top ↑

Parameters

$menu

(string)The HTML output.

$args

(array)An array of 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.