wp_page_menu filter-hookWP 2.7.0

Filters the HTML output of a page-based menu.

Usage

add_filter( 'wp_page_menu', 'wp_kama_page_menu_filter', 10, 2 );

/**
 * Function for `wp_page_menu` filter-hook.
 * 
 * @param string $menu The HTML output.
 * @param array  $args An array of arguments. See wp_page_menu() for information on accepted arguments.
 *
 * @return string
 */
function wp_kama_page_menu_filter( $menu, $args ){

	// filter...
	return $menu;
}
$menu(string)
The HTML output.
$args(array)
An array of arguments. See wp_page_menu() for information on accepted arguments.

Changelog

Since 2.7.0 Introduced.

Where the hook is called

wp_page_menu()
wp_page_menu
wp-includes/post-template.php 1504
$menu = apply_filters( 'wp_page_menu', $menu, $args );

Where the hook is used in WordPress

Usage not found.