add_menu_classes filter-hookWP 2.7.0

Filters administration menu array with classes added for top-level items.

Usage

add_filter( 'add_menu_classes', 'wp_kama_add_menu_classes_filter' );

/**
 * Function for `add_menu_classes` filter-hook.
 * 
 * @param array $menu Associative array of administration menu items.
 *
 * @return array
 */
function wp_kama_add_menu_classes_filter( $menu ){

	// filter...
	return $menu;
}
$menu(array)
Associative array of administration menu items.

Changelog

Since 2.7.0 Introduced.

Where the hook is called

add_menu_classes()
add_menu_classes
wp-admin/includes/menu.php 259
return apply_filters( 'add_menu_classes', $menu );

Where the hook is used in WordPress

Usage not found.