wp_nav_menu_items WordPress Filter Hook
The wp_nav_menu_items hook allows you to add additional items to a menu. This hook is triggered when a menu is being displayed.
apply_filters( 'wp_nav_menu_items', string $items , stdClass $args ) #
Filters the HTML list content for navigation menus.
Description
See also
Parameters
- $items
(string)The HTML list content for the menu items.
- $args
(stdClass)An object containing wp_nav_menu() arguments.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |