Check Your Menu Icons for Missing Icons with AI
A list of the menu icons visitors can't see and the items missing one, across every menu, with nothing changed.
Prerequisites
A site connected to WPVibe running Menu Icons by Themeisle 0.13.27 or newer (tested on 0.13.27, free) on WordPress 6.9 or newer, with an administrator account, and a classic theme whose menus are set under Appearance, Menus.
My site uses Menu Icons by Themeisle. Check the icons in [all my menus, or the menu's name] and tell me what's missing or hidden. Don't change anything. 1. Run discover_abilities with category menu-icons. If menu-icons/search-icons and menu-icons/set-item-icon are not both listed, stop and tell me to install or update the free Menu Icons by Themeisle plugin (0.13.27 or newer, on WordPress 6.9 or newer). If one answers that I am not allowed, tell me WPVibe must be connected as an administrator, then stop. 2. Run rest_api GET /wp/v2/themes?status=active. If is_block_theme is true, say first that this check covers classic menus (Appearance, Menus) only: icons on links in the block editor's Navigation block are set in the editor and can't be read here. 3. Run rest_api GET /wp/v2/menu-locations (which menu id sits in each theme location, 0 is none) and GET /wp/v2/menus?per_page=100. Mark each menu that is in no location: it shows only where a widget or a builder places it. 4. Run menu-icons/search-icons with no input: it lists the icon sets that are turned on and the settings each supports. Only Dashicons is on unless someone ticked more under Icon Types in the Menu Icons Settings box on Appearance, Menus. Note the ids of the sets that are on. 5. Run run_wp_cli: option get menu-icons --format=json. If the option doesn't exist, Menu Icons' settings were never saved: only Dashicons is on and no menu has icons turned off. A key menu_MENU_ID with disabled set to 1 means icons are turned off for that menu: Menu Icons has no setting for it, so code or a direct change to the option put it there. Code can also turn a menu off with the menu_icons_menu_settings filter without showing here; menu-icons/set-item-icon then answers menu_icons_disabled_for_menu. New icons can't be set on such a menu, though ones already set still show. 6. For each menu, run rest_api GET /wp/v2/menu-items?menus=MENU_ID&per_page=100, and for each item run_wp_cli: post meta get ITEM_ID menu-icons --format=json (nothing back, or no type or icon, means no icon). 7. Flag, per item: an icon whose type isn't among the sets that are on (it is hidden on the site, and comes back if that set is ticked again); an image or svg icon whose file is gone (its stored icon value is the image's ATTACHMENT_ID; rest_api GET /wp/v2/media/ATTACHMENT_ID returns 404, and the icon is gone from the site, or an empty space for an svg); and items without an icon in a menu where most items have one. 8. Report menu by menu: its location, how many items have icons, and each problem with the item's name and what to do about it (tick the set again, pick a new icon, upload the image again). End with the menus that look fine.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Check Your Menu Icons for Missing Icons with AI” recipe from the WPVibe cookbook on my connected site.
Menu icons go missing without anyone noticing. Untick an icon set in Menu Icons’ settings, or delete an image from the Media Library, and the icons that used it vanish from your menu with no warning. A new item added later sits without an icon while its neighbours have one.
The AI reads every menu, which icon sets are on, and the icon stored on each item, then lists what a visitor won’t see as you meant: icons hidden because their set is off, image icons whose file is gone, items without an icon in a menu that has them, and menus that are in no theme location. It only reads, so nothing on your site changes.
Run it after a redesign, after changing Menu Icons’ settings, or after clearing out the Media Library. To fill the gaps it finds, use this recipe.
Outcome
A report of each menu's icons, what is hidden or missing and why, and nothing changed.