add_menu_classes WordPress Filter Hook
The add_menu_classes hook allows you to add custom classes to menu items in your Wordpress site. This can be useful for customizing your menu's appearance or for targeting specific menu items with CSS or JavaScript.
apply_filters( 'add_menu_classes', array $menu ) #
Filters administration menu array with classes added for top-level items.
Parameters
- $menu
(array)Associative array of administration menu items.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |