Inject JavaScript, CSS, and PHP snippets on specific pages or globally across your WordPress site. Describe what you need in plain English — AI generates production-ready code in seconds. Three-stage PHP sandbox keeps your site safe.
$10–$15 per site · AI generation uses NitroShock credits · JS & CSS injection is free
Features
Full support for JavaScript, CSS, and PHP. Add tracking scripts, custom styles, or server-side logic — all from one interface.
Describe what you want in plain English. AI generates production-ready JS, CSS, or PHP — including WordPress hooks and best practices.
Three-stage validation: syntax checking, dangerous function scanning, and isolated sandbox execution. Errors auto-deactivate the snippet.
Target the homepage, specific pages, or individual posts. Select multiple targets per rule. Global snippets run site-wide.
Choose where global scripts load. Header for tracking pixels and styles, footer for analytics and non-blocking scripts.
Something go wrong? Add ?nitrosnippets-safe-mode=1 to any admin URL to pause all execution instantly.
Code Types
PHP Sandbox
Other code snippet plugins let PHP run unchecked. NitroSnippets validates every PHP snippet through three stages before it touches your live site. If anything goes wrong, the snippet is automatically deactivated.
40+ dangerous functions blocked, including exec, eval, file_put_contents, shell_exec, superglobals, and more.
Runs php -l to catch parse errors before the snippet is ever saved.
Scans for blocked functions, backtick execution, variable variables, and raw superglobal access.
Activates the snippet and makes an isolated test request. If the server returns a 500, the snippet is auto-deactivated.
AI Snippet Writer
1 credit per AI generation · Works for JavaScript, CSS, and PHP
Getting Started
Upload the zip via Plugins → Add New → Upload Plugin. Activate it. NitroSnippets appears in your admin sidebar.
Enter your NitroShock license key in the license bar at the top of the NitroSnippets admin page. JS and CSS injection works without a license — the key unlocks AI generation and PHP execution.
Choose Global (runs everywhere) or Page-Specific (target individual pages or posts). Select your code type, paste or write your code, and save.
Open the AI Snippet Writer, describe what you need in plain English, pick JS/CSS/PHP, and hit Generate. Copy the result into your snippet — or refine your prompt and regenerate.
Every snippet can be activated, deactivated, or deleted with one click. PHP snippets show sandbox errors inline if anything went wrong during validation.
Free to install. JS and CSS injection included. Activate a license to unlock AI generation and PHP execution.
Compatible with all major WordPress setups