Update mega menu item is a WordPress ability from ElementsKit Elementor Addons — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Update mega menu item

Write
ElementsKit Elementor Addons Page Builders elementskit/update-mega-menu-item

Enable and configure the Mega Menu panel on a specific nav menu item, including its Elementor element tree.

Requires the ElementsKit Elementor Addons plugin (elementskit-lite) with Elementor active, on WordPress 6.9+ for the Abilities API (abilities are registered only when wp_register_ability() exists). Read-only listing abilities require 'edit_posts' (list-widgets, list-templates, list-library-templates), 'manage_options' (list-custom-widgets), or 'edit_theme_options' (list-mega-menus); write abilities that target a specific Elementor document (insert-widget, insert-template, import-library-template) require 'edit_posts' plus 'edit_post' on that document; template, header/footer, custom-widget, and mega-menu creation/configuration abilities require 'manage_options' (create-mega-menu additionally requires 'edit_theme_options'); create-page requires 'edit_pages' or 'edit_posts'.

What it does

Given a menu_item_id (a nav_menu_item post), this ability updates that item's Mega Menu panel settings (an arbitrary settings object covering things like panel width and icon) and, when an elements array is supplied, sets the Elementor element tree rendered as the panel's dropdown content. This is the ability that actually makes a mega menu panel appear and look a specific way for one menu item, after enable-mega-menu has switched the menu itself on.

See it in action

You ask your AI assistant

"Configure the Mega Menu panel on menu item 118 to show a 3-column layout of product categories."

Inputs

Name Type Required Description
menu_item_id integer Yes The nav_menu_item post id.
settings object No Mega menu panel settings.
elements array No Elementor element tree for the panel content.

Returns

An object with success and menu_item_id.

Permission

Requires the 'manage_options' capability.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.