Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

All docs

Switch from WPCodeBox (beta)

Snipfire can import snippets from WPCodeBox's database table. This importer is a beta: it brings the code and basic settings across for you to review, but switching over is done by hand for now.

Read Switching from another snippet plugin for how importing works in general.

Steps

  1. Snipfire → Snippets → Import, then pick WPCodeBox (beta).
  2. Import the snippets. They arrive switched off in Imported/WPCodeBox (WPCodeBox folders become subfolders), each marked Check first with the note Imported from WPCodeBox (beta): check where it runs and its conditions before switching it on.

What comes across: title, description, code, type (PHP, HTML, CSS, SCSS, LESS, JavaScript), priority, and whether it was on. Where and conditions are not converted yet: set them in Snipfire.

  1. For each snippet:
    1. Check its type, Where, Priority and conditions against WPCodeBox.
    2. Switch it off in WPCodeBox.
    3. Switch it on in Snipfire and save. Snipfire checks it and test-loads the site.
  2. When everything is moved and checked, deactivate WPCodeBox.

Always switch a snippet off in WPCodeBox before switching it on in Snipfire, so the same PHP function is never declared twice.

Command line: wp snipfire import-from wpcodebox --dry-run, then wp snipfire import-from wpcodebox.

SCSS and LESS

WPCodeBox SCSS and LESS stylesheets come across as SCSS or LESS, which needs Snipfire Pro to compile. If a stylesheet imports partials, import those too, or it won't compile: the note says so.

Help us finish this importer

A full WPCodeBox importer with one-click switch over is on the roadmap. If you're moving from WPCodeBox and something didn't come across correctly, please contact support: an export from WPCodeBox (with nothing confidential in it) helps a lot.

Something unclear or missing? Tell us