wp_nav_locations_listed_per_menu

wp_nav_locations_listed_per_menu

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_nav_locations_listed_per_menu') is found 1 times:

  • /wp-admin/nav-menus.php line 1004
    							 * @since 3.6.0
    							 *
    							 * @param int $locations Number of menu locations to list. Default 3.
    							 */
    							$locations_listed_per_menu = absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) );
    
    							$assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, $locations_listed_per_menu );
    
    							// Adds ellipses following the number of locations defined in $assigned_locations.
    							if ( ! empty( $assigned_locations ) ) {
    								printf(