Switch from WPCode
Snipfire imports everything from WPCode Lite and WPCode Pro (formerly Insert Headers and Footers), including the global Header & Footer boxes, and switches it over without a gap. Read Switching from another snippet plugin first for how importing, Check first and Switch over work.
Steps
- Snipfire → Snippets → Import, then pick WPCode.
- Select the snippets and click Import … selected. They arrive switched off in Imported/WPCode.
- Look at anything marked Check first, and read the notes in the snippets' descriptions.
- Click Switch over.
- Clear your page cache, check the site, then deactivate and delete WPCode.
Command line: wp snipfire import-from wpcode --dry-run, then wp snipfire import-from wpcode --switch.
What comes across
| WPCode | In Snipfire |
|---|---|
| Title, code, tags, note, priority | Title, code, tags, description, priority |
| PHP, Run Everywhere | PHP on plugins_loaded, priority 5 (where WPCode runs them) |
| PHP, Admin Only / Frontend Only | The same, plus a Request type condition |
| PHP, Frontend Conditional Logic | PHP on wp, so page conditions work |
| PHP, On Demand | Only when I click Run |
| PHP, HTML, text or universal snippets in the site header, body or footer | HTML in Site header, After <body> opens or Site footer (PHP on those locations stays PHP) |
| Snippets before/after the content or before/after the post | HTML on Before post content / After post content, with a condition for single posts and pages |
| Snippets before/after paragraph N | HTML on Before a paragraph of the post / After a paragraph of the post, with the same number and a condition for single posts and pages |
| Snippets before/after the excerpt | HTML on Before the excerpt (archives) / After the excerpt (archives) |
| Snippets between posts, or before/after post N in archives | HTML on Between posts in archive lists, Before a post in archive lists / After a post in archive lists, with the same number |
| CSS and JavaScript in the site header or footer, or the admin | CSS/JS snippets on the matching location, inline or as a file as they were |
| CSS and JavaScript anywhere else (content locations, shortcodes) | An HTML snippet with a <style> or <script> tag |
| SCSS snippets | SCSS source, if Snipfire can compile it (Pro); otherwise WPCode's compiled CSS |
| Text snippets containing shortcodes | HTML that still runs the shortcodes |
| Snippets without auto-insert (shortcode only) | As a shortcode, plus WPCode's custom shortcode name (Pro) |
| Conditional logic ("show" and "hide") | Conditions: logged in, user role, page type, post type, taxonomy page, taxonomy term, page URL, referrer, post/page ID |
| Device type (Pro) | Device condition |
| Schedule (Pro) | Date range condition |
| Location rules (Pro): country, continent | Country and Region (EU, continent) conditions (Pro) |
| Global Header & Footer boxes | Three HTML snippets: Global header scripts, Global body scripts, Global footer scripts (separate from Snipfire's own Header & Footer screen) |
Marked "Check first"
- A location Snipfire doesn't have: WPCode location "…" has no match in Snipfire. Choose where it runs before switching it on.
- A conditional logic rule Snipfire can't convert (it's left out, and the note names it).
- "Hide when" logic too complex to turn around.
Close, but not identical
These are imported, with a note:
- Before the post: WPCode inserted it before the whole post; Snipfire places it at the start of the post content.
- CSS in the footer: Snipfire loads CSS in the header.
Paragraph, excerpt and post-list locations come across exactly, with the same paragraph or post number. See Where snippets run.
Referrer, country and continent rules need Snipfire Pro
WPCode's Referrer rule becomes Snipfire's Referrer condition, and WPCode Pro's country and continent rules become Country and Region (EU, continent). These are part of Snipfire Pro. Without Pro active, the rules are still imported, but they can't match, so the snippet is marked Check first and isn't switched over. Activate Snipfire Pro, or change the conditions, before switching it on.
Not imported
- Block snippets (WPCode Pro): Block snippets (WPCode Pro) can't be imported yet. They stay in WPCode.
- An SCSS snippet that doesn't compile and has no compiled CSS saved.
Switching over
For each snippet, Snipfire sets the WPCode snippet to draft and removes it from WPCode's run cache, then switches the copy on. For the global Header & Footer boxes, it empties the boxes and keeps a backup of their contents.
[wpcode id="…"] shortcodes keep working after switching over, even with WPCode deleted. Shortcode attributes reach the snippet as $atts['name'].
Something unclear or missing? Tell us