Bulk Toggle All Widgets is a WordPress ability from Ultimate Addons for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Bulk Toggle All Widgets

Destructive

Activates or deactivates every HFE widget at once.

Requires the Ultimate Addons for Elementor (Header Footer & Elementor) plugin on WordPress 6.9+ (the WP Abilities API). No ability registers unless the plugin's 'Enable AI Tools' master switch (uae_mcp_settings.enable_abilities) is turned on in settings. Most abilities require the 'manage_options' capability; a smaller set of read/discovery abilities (template and page listing, the Elementor builder read/list/schema abilities, active-template lookup, display-rule locations, and design tokens) instead require only 'edit_posts' or 'read'. Abilities that act on a specific page, post, or template additionally check the current user's per-object 'edit_post' (or 'delete_post') capability on that item. Separately, every non-readonly (Write or Destructive) ability is gated behind a site-wide 'Allow Modifications' setting at registration time: if it is off, none of those abilities are even registered with the WP Abilities API, regardless of capability checks — this covers all template/page CRUD, widget/extension toggles, display-rule updates, theme/settings changes, and the Elementor builder writes alike, not just the builder ones. Eight of those abilities (the seven Elementor page-builder writes — build, insert-widget, update-widget, remove-element, move-element, add-section, add-column — plus pages-create) additionally re-check this same setting explicitly inside execute() as a redundant safeguard.

What it does

Reads the action input ('activate' or 'deactivate'). When activating, it iterates all widgets and marks each non-Pro widget active in the '_hfe_widgets' option (Pro widgets are skipped). When deactivating, it marks every widget as 'disabled' regardless of type. The option is saved once at the end and the number of widgets affected is counted and returned. Marked destructive since deactivating all widgets can break the frontend.

See it in action

You ask your AI assistant

"Deactivate all HFE widgets at once — I'm troubleshooting a conflict."

Inputs

Name Type Required Description
action string Yes Whether to activate or deactivate all widgets. Enum: activate, deactivate.

Returns

An object with success (boolean), action (string), and count (integer number of widgets affected).

Permission

Requires current_user_can('manage_options'); metadata instructs the caller to warn the user before a bulk deactivation, but there is no additional server-side confirmation gate in execute().

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.