Μετάβαση στο περιεχόμενο

Early-bird άδεια εφ’ όρου ζωής: $199 εφάπαξ, μόνο για τους πρώτους 200 αγοραστές. Δείτε την προσφορά

Όλοι οι οδηγοί

What Snipfire is

Αυτή η σελίδα δεν έχει μεταφραστεί ακόμη, γι' αυτό εμφανίζεται στα αγγλικά.

Snipfire is a WordPress plugin for adding your own code to a site: PHP, CSS, JavaScript and HTML snippets. It replaces pasting code into your theme's functions.php or a "header and footer" box, and it does it more safely:

  • You write in a real code editor. The same editor engine as VS Code, with autocomplete for WordPress, WooCommerce and PHP.
  • You choose exactly where and when each snippet runs. On a WordPress hook, as a shortcode, or only when you click Run, and only on the pages, for the visitors or at the times you pick.
  • A mistake can't take your site down. Code is checked before it's saved, the site is test-loaded when you switch a snippet on, and a snippet that causes an error is switched off automatically.
  • It's fast. Snippets are stored as files and loaded from one cached index, with no database queries.
  • Switching is painless. Snipfire imports snippets from other snippet plugins and switches them over for you. Your old shortcodes keep working.

Two plugins: Snipfire and Snipfire Pro

Snipfire is free, from WordPress.org, and complete on its own. Snipfire Pro is a separate add-on you install next to it. Pro adds features; it doesn't unlock anything hidden in the free plugin.

Free: Snipfire Adds with Snipfire Pro
PHP, HTML, CSS and JavaScript snippets SCSS and LESS, with shared partials
The full code editor: autocomplete, the hook picker that writes the callback, hover docs, formatting, Emmet Cookie consent for scripts, plus the Cookie consent given condition
Crash protection, test loads, automatic switch-off, safe mode Testing mode with a shareable preview link
Every importer, with one-click switch over The visual hook finder
Everyday conditions: page and post types (including WooCommerce pages), posts, terms, URL, query parameters, cookies, users and roles, device, dates, times, weekdays, environment, active plugins More conditions: referrer, visitor country and region, language, WooCommerce cart and customer rules
History: the last 10 versions of each snippet History: the last 50 versions
REST API, WP-CLI, WordPress abilities for AI assistants, JSON export and import, translations Team access by role and the activity log
The snippet library: 70 ready-made snippets in 10 packs Global Privacy Control for marketing scripts
The Header & Footer screen, site files (ads.txt, llms.txt, security.txt, robots.txt lines) and the shortcode finder
Git sync with GitHub and GitLab (Agency plan)

Which Pro features come with which plan is on Plans.

Throughout these docs, pages and sections marked Pro need Snipfire Pro, and Agency marks Git sync, which needs the Agency plan.

What happens to Pro settings without Pro

If you remove Snipfire Pro or your licence ends, your snippets keep running and their Pro settings are kept. Settings that need Pro stay safely off until Pro is back:

  • A script that waits for cookie consent doesn't run (rather than running without consent).
  • A snippet in testing mode runs for nobody.
  • A condition that needs Pro stays in the snippet and never matches.
  • An SCSS or LESS stylesheet keeps its last compiled CSS on the site. You need Pro to save changes to it.

Next

Κάτι δεν είναι σαφές ή λείπει; Πείτε μας