mu_menu_items

Advertisement

Summery Summery

Filters available network-wide administration menu options.

Syntax Syntax

apply_filters( 'mu_menu_items', string[] $admin_menus )

Description Description

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.

Parameters Parameters

$admin_menus

(string[]) Associative array of the menu items available.

Source Source

File: wp-admin/network/settings.php

Advertisement

Changelog Changelog

Changelog
Version Description
MU (3.0.0) Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.