WordPress at a glance
filter is not described

mu_menu_items filter-hook . WP 3.0.0

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.


add_filter( 'mu_menu_items', 'filter_function_name_926' );
function filter_function_name_926( $admin_menus ){
	// filter...

	return $admin_menus;
Associative array of the menu items available.

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

В файле: /wp-admin/network/settings.php
wp-admin/network/settings.php 469
$menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );

Где используется хук в ядре WP

Использование не найдено.