Free Tools (16) Pricing
0 credits
Add Credits
Dashboard Free Tools
New Plugin — Part of the NitroShock Family

Add Custom Code to Any Page.
Let AI Write It.

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

Everything you need to manage custom code

Three Code Types

Full support for JavaScript, CSS, and PHP. Add tracking scripts, custom styles, or server-side logic — all from one interface.

AI Snippet Writer

Describe what you want in plain English. AI generates production-ready JS, CSS, or PHP — including WordPress hooks and best practices.

PHP Sandbox Safety

Three-stage validation: syntax checking, dangerous function scanning, and isolated sandbox execution. Errors auto-deactivate the snippet.

Page-Specific Targeting

Target the homepage, specific pages, or individual posts. Select multiple targets per rule. Global snippets run site-wide.

Header & Footer Control

Choose where global scripts load. Header for tracking pixels and styles, footer for analytics and non-blocking scripts.

Safe Mode

Something go wrong? Add ?nitrosnippets-safe-mode=1 to any admin URL to pause all execution instantly.

Three languages. One workflow.

JavaScript

Client-Side Scripts

  • Analytics and conversion tracking
  • Chat widgets and popups
  • Custom interactions and scroll effects
  • Third-party embed codes
  • A/B testing scripts
CSS

Custom Styles

  • Page-specific style overrides
  • Theme customizations without child themes
  • Hide or show elements per page
  • Custom fonts and typography
  • Responsive layout adjustments
PHP

Server-Side Logic

  • WordPress action and filter hooks
  • Admin bar and login customizations
  • Dynamic content injection
  • WooCommerce checkout modifications
  • Custom shortcodes and functions

PHP execution
without the risk

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.

1
Syntax Validation

Runs php -l to catch parse errors before the snippet is ever saved.

2
Dangerous Function Scan

Scans for blocked functions, backtick execution, variable variables, and raw superglobal access.

3
Sandbox Execution

Activates the snippet and makes an isolated test request. If the server returns a 500, the snippet is auto-deactivated.

Describe it. Generate it. Done.

AI prompt → generated output
// Prompt: "Add a sticky back-to-top button that appears after scrolling 300px" <script> document.addEventListener('DOMContentLoaded', function() { // Create the button element const btn = document.createElement('button'); btn.innerHTML = '&uarr;'; btn.style.cssText = 'position:fixed;bottom:24px;right:24px;' + 'width:44px;height:44px;border-radius:50%;border:none;' + 'background:#10b981;color:#fff;font-size:20px;' + 'cursor:pointer;opacity:0;transition:opacity .3s;z-index:9999'; document.body.appendChild(btn); // Show/hide on scroll window.addEventListener('scroll', () => { btn.style.opacity = window.scrollY > 300 ? '1' : '0'; }); btn.addEventListener('click', () => { window.scrollTo({ top: 0, behavior: 'smooth' }); }); }); </script>

1 credit per AI generation · Works for JavaScript, CSS, and PHP

Up and running in two minutes

Install the plugin

Upload the zip via Plugins → Add New → Upload Plugin. Activate it. NitroSnippets appears in your admin sidebar.

Activate your license

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.

Add a snippet

Choose Global (runs everywhere) or Page-Specific (target individual pages or posts). Select your code type, paste or write your code, and save.

Or let AI write it

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.

Manage and toggle

Every snippet can be activated, deactivated, or deleted with one click. PHP snippets show sandbox errors inline if anything went wrong during validation.

Start adding custom code today

Free to install. JS and CSS injection included. Activate a license to unlock AI generation and PHP execution.

Compatible with all major WordPress setups

WordPress 5.0+ PHP 7.4+ Oxygen Builder Elementor Gutenberg Classic Editor WooCommerce