Toggle Extension Ability: Enable or Disable a Nexter Feature in WordPress

Key Takeaways

  • Nexter/toggle-extension ability enables or disables specific Nexter Extension features using a required key from nexter/list-extensions.
  • Enabled parameter is optional; omitting it toggles the current state and returns the new status after the change.
  • Nexter Extension (Free) must be installed to use this ability, which allows enabling features without accessing the WordPress admin UI.
Table of Contents

The nexter/toggle-extension ability enables or disables a specific Nexter Extension feature. Pass the feature key and an optional enabled boolean to set its state. If you omit enabled, the ability flips the current state. Use nexter/list-extensions first to get the correct key for each feature.

Key Takeaways

The key parameter is required. It must match an exact extension key from nexter/list-extensions.

The enabled parameter is optional. When omitted, the ability toggles the current state.

The ability returns the new status after the change, not the previous state.

Disabling a feature does not delete its configuration. Re-enabling restores the previous settings.

Required Setup

This ability ships with Nexter Extension (Free). If you do not have it installed, follow the guide on how to install and activate Nexter Extension first.

Parameters

**key** (string, required) is the extension identifier. Use nexter/list-extensions to get valid key values.

**enabled** (boolean, optional) sets the desired state explicitly. When omitted, the ability flips the current state.

What It Returns

The ability returns: success (boolean), new_status (boolean — the state after the change), and message (a confirmation string describing the result).

When to Use This Ability

Enable a specific Nexter feature without navigating the WordPress admin UI.

Disable a feature that is causing a conflict on a live site.

Automate feature activation as part of a site setup or configuration workflow.

Related Documentation

List Extensions Ability: nexter/list-extensions

Toggle Snippet Ability: nexter/toggle-snippet

Toggle Template Builder Ability: nexter/toggle-template-builder

About the Author

sandip patel

WordPress Developer at POSIMYTH Innovations I am a passionate WordPress Developer at POSIMYTH Innovations, where I focus on building high-performance products and cutting-edge web experiences. Currently, I contribute to the development of major projects including The Plus Addons for Elementor, Sticky Header for Elementor, RankReady AI (LLM & SEO), and the SproutOS MCP server integration. I love bridging the gap between WordPress core functionality and modern AI capabilities. Beyond standard development.

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!