Turn Off AI Features — A Kill Switch for WordPress AI (Now Live)

Written by

in

AI is becoming a first-class citizen in WordPress. With new capabilities and the emerging Connectors model, more features are starting to depend on AI being available.

That’s useful—but not always desirable.

I’ve released a lightweight plugin that introduces a kill switch for AI in WordPress, giving you full control over whether AI is enabled on your site.

👉 Plugin: https://wordpress.org/plugins/turn-off-ai-features/


Why a Kill Switch for AI?

As AI capabilities expand, so do the scenarios where you may want to disable them:

  • Compliance & privacy requirements
  • Editorial control (no generated content)
  • Performance considerations
  • Consistency across environments (dev/staging/prod)
  • Avoiding unintended third-party integrations

Instead of disabling features plugin by plugin, you get a centralized control point.


What This Plugin Does

Turn Off AI Features acts as a global kill switch.

At runtime, it hooks into WordPress’ AI capability check and forces it off when enabled.

add_filter('wp_supports_ai', function ($supported) {
    return get_option('toaif_disable_ai', '0') === '1' ? false : $supported;
}, 1000);

This ensures:

  • AI is disabled system-wide
  • No need to patch individual plugins
  • Clean, predictable behavior

Features

🔌 Global AI Kill Switch

A simple checkbox located in:

Settings → General

Toggle it on, and AI features are disabled across the site.


⚙️ WP-CLI Support

Control the kill switch via CLI:

wp toaif disable
wp toaif enable
wp toaif status

Ideal for:

  • CI/CD pipelines
  • Automated deployments
  • Environment-based toggling

🪶 Lightweight & Safe

  • No external dependencies
  • No tracking or data collection
  • Fully uses WordPress APIs
  • Clean, prefixed architecture (toaif_)

Built for the Future (Connectors & AI Integrations)

With WordPress moving toward AI Connectors, sites will increasingly rely on external AI services.

This plugin gives you a fail-safe control layer:

If AI should not run — it won’t.

No ambiguity. No hidden behavior.


Compatibility Note

WordPress 7.0 is not released yet, so the plugin is built with a stable compatibility baseline:

  • Uses safe feature detection (function_exists)
  • Gracefully degrades on older versions
  • Does not break if AI APIs are unavailable

Who Should Use This

  • Agencies managing multiple client sites
  • Enterprise teams with governance requirements
  • Developers testing AI vs non-AI environments
  • Site owners who want predictable behavior

Installation

  1. Install from WordPress.org
  2. Go to Settings → General
  3. Enable “Turn off AI features”

That’s it.


Final Thoughts

AI in WordPress is evolving quickly. Having a kill switch is not about rejecting AI—it’s about control, predictability, and flexibility.

This plugin is intentionally minimal:

  • No bloat
  • No assumptions
  • Just a clean way to turn AI off when needed

👉 Try it here:
https://wordpress.org/plugins/turn-off-ai-features/


If you’re building on top of AI features or planning around the Connectors ecosystem, this gives you a reliable baseline to work from.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *