wphooks.info - add_menu_classes

add_menu_classes

The hook occurs in the following file:

wp-admin/includes/menu.php:
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
		$lastorder = $order;
	}

	/**
	 * Filters administration menus array with classes added for top-level items.
	 *
	 * @since 2.7.0
	 *
	 * @param array $menu Associative array of administration menu items.
	 */
	return apply_filters( 'add_menu_classes', $menu );
}

uksort($menu, "strnatcasecmp"); // make it all pretty

/**
 * Filters whether to enable custom ordering of the administration menu.
 *
 * See the {@see 'menu_order'} filter for reordering menu items.
 *