---
title: "Toggle Extension Ability: Enable or Disable a Nexter Feature in WordPress"
url: https://nexterwp.com/docs/nexter-toggle-extension/
date: 2026-05-29
modified: 2026-05-29
author: "sandip patel"
description: "The nexter/toggle-extension ability enables or disables a specific Nexter Extension feature by its key. Pass the key and an optional enabled value to set the state explicitly."
word_count: 230
---

# 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.

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