The snippet plugin that can't take your site down.
Write PHP, CSS, JavaScript and HTML in the editor behind VS Code, and choose exactly where each snippet runs. If one ever breaks, Snipfire switches it off before your visitors notice.
Or download the free version, every importer included. Needs WordPress 6.5+ and PHP 8.1+.
Switch in two clicks. Keep every snippet and every shortcode.
Snipfire finds the snippets in your current plugin and brings them across switched off, so importing changes nothing on your site. When you're ready, switch over: each snippet is turned off there, turned on here, and your site is test-loaded in between.
- Your old plugin doesn't even need to be active.
- Anything that can't be matched exactly is marked Check first and keeps running where it is until you've looked at it.
- Old shortcodes like
[wpcode]and[code_snippet]keep working, even after you delete the old plugin.
Import from
- WPCode
- Code Snippets
- FluentSnippets
- Header Footer Code Manager
- Simple Custom CSS & JS
- Post Snippets
- Woody Code Snippets
- Customizer "Additional CSS"
- WPCodeBox (beta)
Not a developer? You don't need to be.
Add Google Analytics, fix a bit of CSS or change a WooCommerce button without touching theme files, and without a plugin for every little thing.
-
Paste a tracking code
Snipfire > Header & Footer has three boxes: the page head, just after <body>, and the footer. Paste the code Google, Meta or Clarity gives you, and save.
-
Pick from the library
258 ready-made snippets, from hiding the WordPress version to a minimum order amount. Tick the ones you want; they arrive switched off, and go live after a test load.
-
Fewer plugins to update
Classic Editor, Disable Comments, Duplicate Post and 17 others each do one small job that a few lines of code can do. We say honestly when the plugin is still the better choice.
Need a custom post type or business schema? Our free generators write the code for you. Free tools
Four checkpoints between a typo and a white screen.
A bad snippet in most plugins takes the whole site with it. Here it gets caught, switched off, and pointed out to you, usually before a single visitor sees a thing.
-
Before you save
Every PHP snippet is syntax-checked, and Snipfire warns you before you declare a function or class that already exists: the classic "Cannot redeclare" white screen.
-
When you switch it on
Snipfire test-loads your site first. If the page crashes, the snippet is switched straight back off.
-
While your site runs
Errors and fatal errors, even ones thrown later from a hook, switch the snippet off automatically and record the exact line.
-
If all else fails
Safe mode, from a secret link or one line in wp-config.php, gets you back in. The Snipfire editor never runs your snippets, so you can always fix them.
Zero database queries to load your snippets.
Snippets are stored as plain files, plus one compiled index that PHP keeps in its cache. Loading them costs one cached file read. Nothing waits on the database.
- CSS and JavaScript can be served as minified static files that browsers cache too.
- Edits take effect immediately, even on hosts with aggressive PHP caching.
- Plain files are easy to back up, compare and inspect. Uninstalling keeps them unless you say otherwise.
Run each snippet exactly where it belongs.
Show a banner only to visitors from your Facebook ad. Load a script only on checkout. Schedule a promo for Black Friday week and let it switch itself off. Combine rules into groups, and a snippet runs when any group fully matches.
- UTM and query parameters
- Cookies
- Date range and time of day
- Day of week
- Dev, staging or live site
- Another plugin is active
- User role and logged-in state
- URL, post type, page and term
- Mobile or desktop
- WooCommerce pages
- Cart total, cart contents and past ordersPro
- Visitor country, language and referrerPro
Snipfire also tells you when a rule can't work where you've put it, such as a page-type rule on a hook that fires before WordPress knows which page it's on.
Everything else in the box.
Whether you build sites, look after dozens of them, or run a store, here's what you get beyond the editor.
For developers
- WordPress autocomplete
- 6,800+ functions and 5,200+ hooks, with signatures, hover docs and parameter hints.
- Emmet, Prettier and live error checks
- Problems are marked in the editor as you type, before you save.
- WP-CLI and a REST API
- Automate imports, deploys and CI, starting with
wp snipfire list. - Revisions
- Side-by-side diffs and one-click restore. 10 versions per snippet free, 50 on Pro.
- SCSS and LESS Pro
- Compiled on save, with shared partials.
- Testing mode Pro
- Run a snippet only for admins or through a preview link, then go live in one click.
- Visual hook finder and element picker Pro
- See where each WordPress and WooCommerce hook fires on the page, or pick any element and put HTML before, after or inside it.
- Live CSS preview Pro
- Your site beside the editor, with CSS, SCSS or LESS applied as you type.
- Smart tags, page code, a block and builder elements
- Use {post_title} or {custom_field:key} in HTML and JavaScript, add code to a single page from the editor sidebar, and place shortcode snippets with the Snipfire block or its Elementor widget.
- Export as a plugin
- Turn a few snippets or a whole folder into a normal WordPress plugin that runs without Snipfire. You're never locked in.
- Scheduled snippets and performance figures Pro
- Run PHP every hour, day or week with a run log, and see what each snippet costs per page in time and memory.
- AI assistant and a secrets vault Pro
- Explain, fix or write a snippet with your own Anthropic, OpenAI or OpenAI-compatible key, and keep API keys encrypted instead of in your code.
For agencies
- Git sync Agency plan
- Two-way sync with GitHub or GitLab, for one folder or the whole library, with conflicts you settle in one click.
- Team access and activity log Pro
- Choose per role who can view snippets, edit CSS, JS and HTML, or do everything. See who changed what and when.
- Folders, tags and bulk actions
- Drag and drop, search by hook or tag, and switch many snippets on with one test load.
- Settings forms your clients can edit Pro
- Give any snippet a form with fields. Clients change the values, never the code.
- Agency hub Agency plan
- Connect your clients' sites to your own, push snippets to them, see which version runs where, and roll back. No cloud service in between.
- Network snippets for multisite Agency plan
- Write a snippet once and run it on every site of a network, or only some, with network safe mode and per-site switches.
- Cloud library Coming soon
- Save snippets to your library and pull them onto any site.
For stores and EU sites
- WooCommerce rules
- Shop, product, cart and checkout pages for free. Cart total, cart contents, past purchases and paid orders on Pro.
- Scripts that wait for consent Pro
- Tag a tracking snippet as statistics or marketing and it runs the moment the visitor agrees. Works with Complianz, CookieYes, Cookiebot, Borlabs, the WP Consent API and Google Consent Mode v2.
- Country, language and referrer rules Pro
- Language rules work with WPML and Polylang.
- Order data for conversion tracking Pro
- Order total, items and customer as smart tags on the thank-you page, and a GA4 purchase event generator.
- GA4 WooCommerce events Pro
- Product views, lists, cart, checkout and purchases with full item data, for the classic and block checkout. Waits for statistics consent.
- In six languages
- English, German, French, Italian, Spanish and Greek. Each person sees their own profile language.
On the roadmap
- A cloud library for your snippets
- The full WPCodeBox importer, out of beta
- Smarter asset loading
- Deeper code checks: PHP compatibility and security hints
- Tailwind and PostCSS
No famous quotes yet. Here's how we test it instead.
Snipfire is new, so we won't show you testimonials we don't have. We'll show you what we checked.
We imported from WPCode, Code Snippets, FluentSnippets, Header Footer Code Manager and Simple Custom CSS & JS on a real test site. The site's output was identical before importing, after switching over, and after the old plugins were switched off.
- Over 1,400 automated checks cover the engine, the editor, every importer, signed updates, Git sync, the agency hub, multisite and the command line.
- Every check runs on PHP 8.1, the oldest version we support.
Using it on a real site? Tell us how it went. We'll read every message.
How Snipfire compares with WPCodeBox.
WPCodeBox is a mature, well-made plugin, and we respect it. These are the places where we do things differently.
| Feature | Snipfire | WPCodeBox 2 |
|---|---|---|
| Free version | Yes, a free download | No |
| Import from other snippet plugins | Yes, from 8 plugins, with one-click switch over | None |
| Where snippets are stored by default | Files, zero database queries | Database |
| WP-CLI commands | Yes, free | None documented |
| Git sync | Yes, on the Agency plan | None documented |
| Tracking scripts that wait for cookie consent | Yes, on Pro | None documented |
| Testing mode (run only for you) | Yes, on Pro | No dedicated mode |
| PHP snippets on a schedule | Yes, on Pro, with a run log | No; a snippet can be run from an outside URL |
Where WPCodeBox is ahead today: a cloud library for your own snippets, a file manager for theme and plugin files, and an AI chat inside the editor (Snipfire Pro's AI assistant explains, fixes and writes snippets with your own key, but it isn't a chat). Both plugins can now turn snippets into a standalone plugin.
Based on wpcodebox.com and its documentation, checked 24 September 2026. Spotted something out of date? Tell us and we'll fix it.
Full comparison, including WPCode and Code SnippetsStart free. Upgrade when a site needs more.
The free plugin does the everyday work. Pro adds the power tools, and Agency adds Git sync, the agency hub and network snippets. Every paid plan comes with a 30-day refund, no questions asked.
Early-bird lifetime
Pro on unlimited sites, paid once with no renewals. Only for the first 200 buyers, and only for a limited time. Git sync, the agency hub and network snippets stay on the Agency plan.
$199once
Get lifetime accessPro 1 site
$39 a year
Every Pro feature
- SCSS and LESS with partials
- Scripts that wait for cookie consent
- Testing mode, the visual hook finder and live CSS preview
- HTML next to any element, with an element picker
- Scheduled PHP snippets and performance figures
- An AI assistant with your own key, and a secrets vault
- Settings forms your clients can edit
- Team access and an activity log
- WooCommerce cart, country, language and custom PHP rules, and GA4 WooCommerce events
- 50 versions of history per snippet
Pro Unlimited sites
$79 a year
Every Pro feature, on every site
- Pays for itself from the third site
- One licence for all your clients' sites
Agency Unlimited sites
$149 a year
14-day free trial, no card needed
Everything in Pro, plus
- Git sync with GitHub and GitLab
- The agency hub for your clients' sites
- Network snippets for multisite
The free version
- The full editor with WordPress autocomplete
- A library of ready-made snippets, and code generators
- Crash protection, test loads and safe mode
- Every importer, with one-click switch over
- Everyday conditions, WP-CLI and the REST API
- Export snippets as a standalone plugin
- Signed updates inside WordPress
Prices in US dollars. Taxes are worked out at checkout. Payments, licences and invoices are handled by Freemius, our reseller. Local development sites don't count towards your site limit. Compare with other plugins
Questions people ask before switching.
Will switching from my current plugin break my site?
No. Importing changes nothing: copies arrive switched off. Switching over turns each snippet off in the old plugin and on in Snipfire, then test-loads your site. Anything Snipfire can't match exactly is left running in your old plugin until you've checked it.
Do my old shortcodes still work?
Yes. [wpcode], [code_snippet], [fluent_snippet] and [hfcm] keep working, even after you delete the old plugin.
What's free, and what does Pro add?
The free plugin has the full editor, crash protection, every importer, the snippet library and generators, everyday conditions, smart tags, export as a plugin, WP-CLI and the REST API. Pro adds SCSS and LESS, live CSS preview, scripts that wait for cookie consent, testing mode, the hook finder and element picker, scheduled snippets, performance figures, a secrets vault, an AI assistant with your own key, settings forms for clients, team access with an activity log, and WooCommerce cart, country, language and custom PHP rules. Agency adds Git sync, the agency hub and network snippets for multisite.
Can I try it before I pay?
Yes, three ways: use the free plugin, start the 14-day Agency trial without a card, or buy and ask for a refund within 30 days, no questions asked.
What happens if a snippet has an error?
Syntax errors are caught before you save. If a snippet breaks the site while it runs, it's switched off automatically and you see the exact line. Safe mode always gets you back in.
Does it slow my site down?
No. Snippets load from one cached file, with no database queries. With Pro you can see what each snippet costs per page.
Does it work with my theme or page builder?
Yes, with any theme and any builder, including Bricks, Oxygen, Breakdance and Elementor. Elementor gets a Snipfire widget for shortcode snippets (Bricks an element, in beta), and CSS autocomplete offers your theme's and builder's colours and fonts.
What do I need to run it?
WordPress 6.5 or newer and PHP 8.1 or newer. Pro is an add-on that runs alongside the free plugin.
Can I stop using Snipfire later?
Yes. Export your snippets as a normal WordPress plugin that runs them without Snipfire: hooks, shortcodes, HTML locations, CSS and JavaScript files, settings and the everyday conditions. Before it builds the plugin, Snipfire lists anything that can't work without it.
What happens to my snippets if I uninstall?
Your snippet files stay on the server unless you choose to delete them. They're your code.
Move your snippets over this afternoon.
Importing changes nothing until you switch over, and your old shortcodes keep working.