Title: Menu icon with custom menu function
Last modified: August 31, 2016

---

# Menu icon with custom menu function

 *  Resolved [Eric Valois](https://wordpress.org/support/users/bulledev/)
 * (@bulledev)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/menu-icon-with-custom-menu-function/)
 * Hi,
 * I’m using a function to create a custom menu markup, but of course, it’s not 
   working with Menu Icons.
 * Is there a way to do something like this : `$title = _add_icon($menu_item->title,
   $locations);` from my theme functions.php?
 * I’m using the User Contributed function here: [https://developer.wordpress.org/reference/functions/wp_get_nav_menu_items/#Building_simple_menu_list](https://developer.wordpress.org/reference/functions/wp_get_nav_menu_items/#Building_simple_menu_list)
 * Thank you
 * [https://wordpress.org/plugins/menu-icons/](https://wordpress.org/plugins/menu-icons/)

Viewing 1 replies (of 1 total)

 *  [Dzikri Aziz](https://wordpress.org/support/users/kucrut/)
 * (@kucrut)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/menu-icon-with-custom-menu-function/#post-7059319)
 * Hi Eric,
 * You can hook a callback to the [`menu_icons_item_title`](https://github.com/kucrut/wp-menu-icons/blob/develop/includes/front.php#L251)
   filter. See [the codex article](http://codex.wordpress.org/Function_Reference/add_filter).

Viewing 1 replies (of 1 total)

The topic ‘Menu icon with custom menu function’ is closed to new replies.

 * ![](https://ps.w.org/menu-icons/assets/icon-128x128.png?rev=2526860)
 * [Menu Icons by Themeisle – Add Icons to Navigation Menus](https://wordpress.org/plugins/menu-icons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/menu-icons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/menu-icons/)
 * [Active Topics](https://wordpress.org/support/plugin/menu-icons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/menu-icons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/menu-icons/reviews/)

## Tags

 * [icons](https://wordpress.org/support/topic-tag/icons/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dzikri Aziz](https://wordpress.org/support/users/kucrut/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/menu-icon-with-custom-menu-function/#post-7059319)
 * Status: resolved