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
See also
Parameters
- $nav_menu
(string)The HTML content for the navigation menu.
- $args
(stdClass)An object containing wp_nav_menu() arguments.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |