apply_filters( ‘wp_nav_locations_listed_per_menu’, int $locations )

In this article

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

Parameters

$locationsint
Number of menu locations to list. Default 3.

Source

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

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.