wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



mu_menu_items › Hooks de Filtros WordPress

DesdeMU (3.0.0)
Obsoleton/a
apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' )
Parâmetros:
  • (string[]) $admin_menus Associative array of the menu items available.
    Required: No
    Padrão:
Definido em:
Codex:

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.





Fonte

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