wp_nav_menu WordPress Filter Hook

The wp_nav_menu hook is used to add custom navigation menus to your Wordpress site. You can use this hook to add one or more custom menus to your site.

apply_filters( 'wp_nav_menu', string $nav_menu, stdClass $args ) #

Filters the HTML content for navigation menus.


Description

Top ↑

See also


Top ↑

Parameters

$nav_menu

(string)The HTML content for the navigation menu.

$args

(stdClass)An object containing wp_nav_menu() arguments.


Top ↑

Source

File: wp-includes/nav-menu-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.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.