wp_nav_locations_listed_per_menu

过滤钩子


apply_filters( 'wp_nav_locations_listed_per_menu', 3 )
参数
  • (int)
    $locations
    Number of menu locations to list. Default 3.
    Required:
定义位置
  • wp-admin/nav-menus.php
    , line 888
引入
3.6.0
弃用

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

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