A WordPress-centric search engine for devs and theme authors



wp_nav_locations_listed_per_menu ›

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

$assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) ) );