A tiny WordPress “kill switch” plugin that disables Aimogen Snippets Engine execution instantly, without deleting or altering any snippets.
When active, it defines:
define('AIMOGEN_DISABLE_SNIPPETS', true);This prevents all snippet execution (PHP) and injection (JS/CSS/HTML) while keeping every snippet stored and intact.
Sometimes you need an immediate, reversible stop button:
- a newly-enabled snippet breaks the frontend
- a snippet causes a fatal error loop
- performance tanks and you need to stabilize first
- you want a safe “maintenance lever” on production
Activate this plugin, confirm the site is stable, then investigate at your pace. Deactivate it when ready.
With this plugin active, the Aimogen Snippets Engine should skip:
- PHP snippet execution
- Inline JavaScript injection
- Inline CSS injection
- HTML footer injection
Nothing is removed. Nothing is rewritten. It just prevents runtime execution.
Aimogen Snippets Engine includes an emergency guard that checks for:
defined('AIMOGEN_DISABLE_SNIPPETS') && AIMOGEN_DISABLE_SNIPPETSThis plugin defines that constant early during the WordPress plugin load cycle. As a result, Aimogen’s runtime hooks return early and do not execute/inject snippets.
Deactivate the plugin to restore normal behavior.
- Download the plugin ZIP from your repository.
- Go to Plugins → Add New → Upload Plugin
- Upload the ZIP and click Install Now
- Click Activate
-
Upload the plugin folder to:
wp-content/plugins/aimogen-emergency-disable/ -
Activate it from Plugins.
Activate Aimogen Emergency Disable.
Deactivate Aimogen Emergency Disable.
- This plugin is designed to be harmless even if Aimogen is not installed.
- If another plugin/theme defines
AIMOGEN_DISABLE_SNIPPETSfirst, PHP will not allow redefining it. In that case, the first definition wins. - If you use persistent object caching or aggressive page caching, purge caches after toggling for fastest visible effect.
No. It doesn’t touch the database.
No. It only prevents execution/injection at runtime.
Aimogen snippets are typically frontend-oriented, but the constant is global. If Aimogen checks this constant in admin contexts, it will also prevent those code paths.
This plugin intentionally contains only what’s necessary:
- a plugin header
- an early
define()guarded bydefined()
Minimal surface area, maximum reliability.
GPL-2.0-or-later
Built as a safety companion for deployments using the Aimogen Snippets Engine.