wpseek.com
WordPress开发者和主题制作者的搜索引擎



mu_menu_items › WordPress过滤钩子

SinceMU (3.0.0)
已弃用n/a
apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' )
参数:
  • (string[]) $admin_menus Associative array of the menu items available.
    Required: No
    默认:
定义在:
文档:

Filters available network-wide administration menu options.

Options returned to this filter are output as individual checkboxes that, when selected, enable site administrator access to the specified administration menu in certain contexts.

Adding options for specific menus here hinges on the appropriate checks and capabilities being in place in the site dashboard on the other side. For instance, when the single default option, 'plugins' is enabled, site administrators are granted access to the Plugins screen in their individual sites' dashboards.





源码

$menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );