wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_nav_locations_listed_per_menu › WordPress Filter Hooks

Since3.6.0
Deprecatedn/a
apply_filters( 'wp_nav_locations_listed_per_menu', 3 )
Parameters:
  • (int) $locations Number of menu locations to list. Default 3.
    Required: Yes
Defined at:
Codex:

Filters the number of locations listed per menu in the drop-down select.





Source

$locations_listed_per_menu = absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) );