Snipfire documentation
Everything from your first snippet to Git sync, in plain words. Start at the top, or search for what you need.
Snipfire adds custom code to your WordPress site without editing theme files. You write PHP, CSS, JavaScript or HTML in a real code editor, choose where and when it runs, and Snipfire makes sure a mistake can't take your site down.
Start here
- What Snipfire is: the free plugin and what Pro adds.
- Install Snipfire (and Snipfire Pro, if you have it).
- Your first snippet: a five-minute tour of the editor.
- The snippet library: ready-made snippets to start from, or generators that make one from a form.
- Moving from another snippet plugin? Import everything and switch over in two clicks.
- New in 0.17 (and the small fixes in 0.17.1): export as a plugin, page-builder elements, signed updates, an editor for keyboards and phones, and in Pro scheduled snippets, performance figures, a secrets vault, an AI assistant, HTML next to any element, and for agencies the agency hub and network snippets.
Getting started
Snippets
- Snippet types
- The snippet library
- Generators
- Settings forms
- How a snippet runs
- Where snippets run
- Shortcodes
- Smart tags
- Loading CSS and JavaScript
- Header & Footer
- Page code and the Snipfire block
- Page builders
- Site files (ads.txt, llms.txt, security.txt, robots.txt)
- Organising snippets
- Export and import
- Export snippets as a plugin
Conditions
Staying safe
The editor
Switching from another plugin
- Switching from another snippet plugin
- Switch from WPCode
- Switch from Code Snippets
- Switch from FluentSnippets
- Switch from Header Footer Code Manager
- Switch from Simple Custom CSS and JS
- Switch from Post Snippets
- Switch from Woody Code Snippets
- Move the Customizer's Additional CSS
- Switch from WPCodeBox (beta)
Pro features
- Snipfire Pro features Pro
- SCSS and LESS Pro
- Live CSS preview Pro
- Testing mode Pro
- Cookie consent for scripts Pro
- Visual hook finder Pro
- Next to an element and the element picker Pro
- Scheduled snippets Pro
- Snippet performance Pro
- Secrets vault Pro
- AI assistant Pro
- GA4 WooCommerce events Pro
- Team access Pro
- Activity log Pro
- Agency hub Agency plan
- Network snippets (multisite) Agency plan
Git sync
- Git sync Agency plan
- Set up Git sync Agency plan
- How Git sync works Agency plan
- Automatic sync, webhooks and WP-CLI Agency plan
- Troubleshooting Git sync Agency plan
For developers
Account and licence
Help
Nothing found. Try another word, or ask us.
Can't find it?
The snippet library and hook reference have ready-made code, and a person answers everything else.