Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_nav_locations_listed_per_menu ›

Da3.6.0
Deprecaton/a
apply_filters( 'wp_nav_locations_listed_per_menu', 3 )
Parametri:
  • (int) $locations Number of menu locations to list. Default 3.
    Richiesto:
Definito a:
Codex:

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





Sorgenti

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