wp_nav_locations_listed_per_menu WordPress Filter Hook
The wp_nav_locations_listed_per_menu hook is used to filter the number of locations listed in the menu editor. This hook is useful for plugins that want to add their own custom locations to the menu editor. By default, only the top-level locations are listed in the menu editor. This hook allows plugins to add their own custom locations, which will be listed in the menu editor alongside the default locations.
apply_filters( 'wp_nav_locations_listed_per_menu', int $locations ) #
Filters the number of locations listed per menu in the drop-down select.
Contents
Parameters
- $locations
(int)Number of menu locations to list. Default 3.
Source
File: wp-admin/nav-menus.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |