WordPress.org

Plugin Directory

FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager

FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager

Beschrijving

FluentSnippets is the fastest and most secure code snippets plugin for WordPress, a high-performance way to add custom code to your site without editing your theme’s functions.php file. Easily insert header and footer scripts, run PHP code snippets, and add custom CSS, JavaScript, and HTML with powerful conditional logic.

100% free and open source. No “Pro” version, no upsells, no feature held back behind a paywall.

Unlike every other code snippet plugin, FluentSnippets stores your snippets in flat files and loads them natively, so it runs zero database queries and never slows down your site. No bloated database tables, no extra SQL injection surface, just safe, native, lightning-fast code execution.

Whether you want to add Google Analytics, a Facebook Pixel, ads.txt or banner ad codes, conversion tracking scripts, custom CSS tweaks, or complex PHP functionality, FluentSnippets makes it safe, secure, fast, and hassle-free. It is the perfect lightweight alternative to editing functions.php or using heavier, database-driven code snippet managers.

👉 Website: Official Website
👉 Community: Join Community
👉 Github: View source & contribute

Simple for Beginners, Powerful for Developers

Adding a snippet takes seconds: open the editor, paste or write your code, choose where it should run (everywhere, admin only, front-end only, or based on conditional logic), and save. A built-in syntax highlighter and smart error handling guide you along the way. If a snippet ever causes a fatal error, FluentSnippets automatically deactivates it so your site stays online instead of breaking. You can organize snippets with tags, switch them on or off with a single click, and export or import them between sites in seconds.

100% Free & Open Source: No Upsells, No “Pro” Version

FluentSnippets is completely free and fully open source under the GPL. There is no premium version, no locked or “Pro-only” features, no upsells, and no email-gated downloads. Every single feature is included for everyone, on every site, forever. The full source code lives on GitHub, so developers can read the code, audit it for security, request features, report bugs, or contribute directly via pull requests. It is built and actively maintained by the team behind FluentCRM, Fluent Forms, and FluentSMTP.

From Quick Tweaks to Advanced Customizations

From simple tweaks to advanced development, FluentSnippets handles it all. Use it to add Google Tag Manager and tracking pixels, register custom shortcodes, create custom functions, disable comments or emojis, remove unwanted admin notices, add JSON-LD schema markup, or run any PHP snippet you would normally drop into functions.php. CSS snippets even support the WordPress Block Editor (Gutenberg), so you can style your site with a familiar editing experience. Every snippet runs only where you tell it to, thanks to granular conditional logic based on post type, page URL, user role, login status, and more, so your custom code stays fast, targeted, and easy to manage.

How FluentSnippets Works: Zero Database Queries

Every other code snippets plugin keeps your code in the database and queries it on every single page load. FluentSnippets does not. Each snippet is stored as a real PHP file, with its title, description, snippet type and conditional logic recorded in a doc block at the top of that file. Those doc blocks are parsed once and cached into an index, so nothing is re-parsed on later requests. At runtime the plugin simply includes the files you activated, on the action hook you chose, exactly the way WordPress loads a plugin.

The result is zero database queries at runtime. Not “a few”. None at all. There is no snippets table to bloat your database, nothing for a SQL injection in some other plugin to reach, and no query for your host to slow down. It is a native, secure-by-design architecture, and it makes FluentSnippets the fastest code snippets plugin in its category.

Functies

  • File-based Snippets: Your snippets are safely saved in your file system and load natively with zero database queries, so it’s safe, secure, and ultra-fast.
  • Aangepaste code snippets: schrijf je eigen aangepaste codesnippeten, waaronder PHP, JS, CSS, HTML en meer. categoriseer je snippets met groepen, tags, enz
  • Geavanceerde voorwaardelijke logica: voer codesnippeten uitsluitend uit onder opgegeven voorwaarden, zoals berichttype, datum, URL, gebruikerstype en nog veel meer.
  • Automatic Error Handling: If a snippet ever triggers a fatal error, the error handler catches it, deactivates that one snippet, and tells you which line caused it, so a bad snippet never takes your site down.
  • Safe Mode Recovery: If custom code ever locks you out of wp-admin, a Safe Mode URL switches every snippet off so you can get back in and fix it. No FTP, no database surgery.
  • Export & Import: Move snippets between sites, or keep a portable backup of them, in a couple of clicks.
  • Block Editor Support: CSS snippets work inside the WordPress Block Editor (Gutenberg), so styling your site happens in a familiar place.
  • Aangepaste shortcode: met een aangepaste shortcode van je snippets kun je aangepaste dynamische inhoudsblokken maken en deze op je site gebruiken en beheren.
  • Stand-alone Mode: The most interesting feature is the Stand-alone Mode. With this feature, you can add your snippets, activate the standalone mode, and then you can uninstall and delete the plugin and your snippets will still run via mu-plugins architecture and when you reactivate the plugin you can manage your snippets as before.
  • Dark Mode: A full dark theme across every screen, switchable from the admin bar and remembered between visits. The setting is shared with the other Fluent plugins, so switching it in one switches it in all of them.

Krachtige slimme voorwaardelijke logica

We hebben slimme voorwaardelijke logica toegevoegd, zodat je precies kunt kiezen waar je je code wilt uitvoeren. Deze voorwaardelijke logica omvat

  • User’s Login State or Role
  • Paginatypes
  • Berichttypen
  • Taxonomie of termgebaseerde regel
  • Op pagina/bericht URL
  • Doelspecifieke pagina/bericht/CPT
  • Datum gebaseerde voorwaarden
  • FluentCRM tag/lijsten op basis van de regel van het huidige contact

Conditions are group-based: you can add several groups, each with its own set of rules, and the snippet runs whenever any one group matches.

Snippet typen

FluentSnippets heeft vier soorten snippets. Je kunt het snippet type kiezen uit de selectie van snippet typen.

Functies – PHP-snippet: dit snippet bevat alle PHP-code die je moet uitvoeren in specifieke gebieden, zoals je zou schrijven in het bestand functions.php van je thema. Je kunt dit snippettype gebruiken om functies/klassen te maken, te koppelen aan andere acties en filters, en meer.

Inhoud – PHP + HTML-snippettype: dit snippettype wordt gebruikt om inhoud op verschillende plaatsen in te voegen, zoals in header, footer, inhoud na een bericht, inhoud voor een bericht, enz. Je kunt php-/html-/js-/css-code in dit snippettype schrijven.

CSS Snippet Type: You can use this snippet type to add custom CSS to your site.

JS Snippet Type: You can use this snippet type to add custom JS to your site.

Populaire gebruiksscenario’s van deze Code Snippet plugin

  • Aangepaste PHP code toevoegen om functionaliteiten uit te breiden
  • Kop en footer codes toevoegen (Google Analytics/Pixel/Ads codes)
  • Aangepaste CSS voor specifieke bericht/pagina typen
  • Aangepaste javaScript codes
  • Dynamische inhoud naar verschillende soorten plaatsen, zoals voor/na berichtinhoud of footer
  • Dynamische shortcode

Other Plugins By The Same Team

BIJDRAGEN

Als je wilt bijdragen aan dit project of gewoon een bug wil rapporteren, ben je van harte welkom. Bekijk de repository op Github . FluentSnippets stond voorheen bekend als Easy Code Manager. We hebben opnieuw opgebouwd & gebrand naar FluentSnippets.

Schermafbeeldingen

Installatie

In deze sectie wordt beschreven hoe je de plugin kunt installeren en aan de slag kan gaan.

  1. Zoek gewoon naar FluentSnippets in WordPress plugins en klik op installeren en activeren.

FAQ

Can I insert header and footer scripts with FluentSnippets?

Yes. FluentSnippets lets you easily insert code into your site’s header and footer, such as Google Analytics, Facebook Pixel, Google Tag Manager, ad codes, and any other custom HTML, JavaScript, or tracking scripts. You can add them globally or only on specific pages using conditional logic.

What types of code snippets can I add?

You can add PHP code snippets (just like your theme’s functions.php), Content snippets (PHP + HTML for header, footer, before/after post content, and more), Custom CSS snippets, and Custom JavaScript snippets, all from one clean interface with syntax highlighting.

Is FluentSnippets a good alternative to other code snippet plugins?

Absolutely. Most code snippet plugins store your snippets in the database and run SQL queries on every page load, which is slow and increases your attack surface. FluentSnippets stores everything in flat files and loads them natively with zero database queries, making it a faster, safer, and more lightweight alternative for managing custom code.

Can I use FluentSnippets instead of editing functions.php?

Yes. FluentSnippets is the safe way to add custom code without touching your theme’s functions.php file. Your snippets survive theme updates, can be activated or deactivated with one click, and the built-in error handler prevents a bad snippet from breaking your site.

Where are my code snippets stored?

Each snippet is saved as a real PHP file in wp-content/fluent-snippet-storage, not in a database table. That means you can read them, back them up with your normal file backups, and move them between sites by copying files. If you need them somewhere else, the FLUENT_SNIPPETS_STORAGE_DIR constant in wp-config.php will point the plugin at a different directory. Your snippets also survive theme changes and theme updates, because nothing lives in your theme.

What happens if a code snippet breaks my site?

FluentSnippets watches for fatal errors. If a snippet causes one, the plugin deactivates that specific snippet automatically and reports which snippet and which line was responsible, so your site stays online instead of showing a white screen. If you ever do get locked out of wp-admin, a Safe Mode URL switches every snippet off at once so you can get back in. No FTP access or database editing required.

Can my snippets keep running if I delete the plugin?

Yes. Turn on Stand-alone Mode and your snippets keep running through the mu-plugins architecture even after the plugin is deactivated and deleted. Reinstall FluentSnippets later and you can manage them again exactly as before.

Can I export and import snippets between sites?

Yes. You can export your snippets to a file and import them into another WordPress site in a couple of clicks. That is useful for reusing the same set of customizations across sites, or for keeping a portable backup.

Wat is de belangrijkste functie van FluentSnippets en welke voordelen biedt het voor mijn site?

De primaire functie van de FluentSnippets plugin is om je in staat te stellen om eenvoudig aangepaste code snippets aan je WordPress site toe te voegen, zonder je thema of subthema bestanden rechtstreeks te bewerken.

Het biedt een gebruiksvriendelijke interface om aangepaste PHP-, HTML-, JavaScript- of CSS-snippeten toe te voegen, te beheren en uit te voeren op je site. Dit is vooral handig omdat het de duurzaamheid van je-code garandeert: je aangepaste wijzigingen verdwijnen niet na een thema-update.

Whether you need to add a simple CSS tweak, embed custom HTML in the header or footer, or run a complex PHP script, FluentSnippets can handle it, saving you time and making the process safer and more efficient.

Is programmeerkennis vereist om deze plugin te gebruiken?

Hoewel enige basiskennis van programmeren zeker nuttig kan zijn bij het gebruik van deze plugin, is het niet absoluut noodzakelijk. FluentSnippets is ontworpen om gebruiksvriendelijk en toegankelijk te zijn voor een breed scala aan gebruikers.

Het doel is om het proces van het toevoegen van aangepaste code aan je site te vereenvoudigen. Dit betekent dat je eenvoudig aangepaste PHP, JavaScript, HTML of CSS aan je site kunt toevoegen zonder de themabestanden van je rechtstreeks te hoeven bewerken, wat complex en riskant kan zijn voor beginners.

Wordt mijn site trager door FluentSnippets?

Quite the opposite. Unlike other code snippets plugins, FluentSnippets does not use the database to store your custom snippets. It stores them as flat files and executes them natively from the file system, which is extremely fast. It runs no database queries at all while your site is serving pages.

Beoordelingen

30 augustus 2026
Happy with the code editor and the fact that its all free. Havent seen many updates to it, even though it got a new design recently. I kinda hoped that redesign would fix these things but i still: Cannot rename the groups i make. Dont even think i can delete them either. I cannot glance what snippets are activated in “Group” mode. Meaning im basically forced to use the other view, which i dont like. Now snippets arent organized, but i can see which are active. Those are my main critigues.
28 augustus 2026
This is the world’s best code snippets plugin without any upgrade popup and works without any BS. It is the best out of the compatitors like WP Code or Code Snippets. Greate WP Ninja Team, keep it up.
14 augustus 2026
I have been using Fluent Snippets for a couple of years now. It just works as expected – and, as I understand it – in a more secure way than most other plugins of this type. I highly recommend Fluent Snippets. And it has now undergone a significant upgrade (August 2026). And it’s still totally free to use. What’s not to like?
14 augustus 2026
I’ve used some other versions of snippet plugins over the years, but this one feels the most intuitive. I also really respect Fluent for making this available along with FluentSMTP and FluentSecurity completely for free.
13 augustus 2026
I recently swapped out two different code snippet plugins I’d been using – both database oriented and now exclusively use Fluent Snippets on all my sites. Having PHP in particular, but CSS and JS stored as files eliminates some loading issues – as the snippets load with WP – not after it. Some of my sites are heavily modified – and this does make a difference. On the dev side – it’s great to have the crash protection – it does work quite well in overcoming the WSOD. And. like many of the Fluent products, the price is perfect – FREE!!!
Lees alle 77 beoordelingen

Bijdragers & ontwikkelaars

“FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager” is vertaald in 8 localen. Dank voor de vertalers voor hun bijdragen.

Vertaal “FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

10.56 – Aug 12, 2026

  • Added a dark mode, switchable from the admin bar and shared with the other Fluent plugins
  • Redesigned every screen: the snippet list, the editor, Settings and About
  • Improved colour contrast throughout, so every screen meets WCAG AA in both light and dark
  • Fixed a click in the code editor selecting the whole snippet instead of placing the cursor
  • Fixed error text on the snippet list not showing in the error colour
  • Added inactive snippets count and filter reset options when no snippets match the current filter
  • Fixed the welcome screen being skipped on a fresh install when “Hide Inactives” was enabled
  • Fixed a JavaScript error on the dashboard when the site has no snippets
  • Fixed pagination total count so sites with more than 200 snippets can reach every page
  • Changed Color Schema and new branding for FluentSnippets

10.55 – Jun 28, 2026

  • Added “Hide Inactives” filter to quickly hide inactive snippets on the dashboard
  • Added Custom Snippets Storage Path support via constant
  • Invalidate OPcache after writing snippet engine files for reliable updates
  • Fixed RTL code formatting issue in the editor
  • Fixed string concatenation issue
  • UI / UX Improvements

10.53 – Jun 22, 2026

  • Fixed Block Editor CSS Issue

10.52 – Jan 21, 2026

  • Added Block Editor Support for CSS
  • Use Ajax endpoint to create and edit snippets for better Usability
  • Enhance handleShortcode to retain user arguments
  • UI / UX Improvements

10.51 – May 11, 2025

  • Security: Added nonce verification for export/import snippets (thanks to Patchstack)
  • Conditional Logic “User / logged in” issue fixed
  • Datum waarop het probleem is opgelost bij het maken van een nieuw snippet

10.50 – Apr 27, 2025

  • Export import functies toegevoegd
  • Problemen met site-migratie opgelost
  • I18n strings toegevoegd om bijna alle strings te bestrijken
  • Added Soft Wrap for Editor
  • Ondersteuning toegevoegd voor command + s voor het opslaan van snippets

10.34 – May 05, 2024

  • Problemen met de voorwaarden van het opgeloste script
  • Laden als bestand voor fragmenten toegevoegd
  • Opgeloste PHP 8.x compatibiliteitsproblemen

10.33 – Jan 25, 2024

  • Probleem met fragmentfout opgelost opgelost

10.32 – Jan 05, 2024

  • Opgelost FluentCRM integratie
  • Gedetailleerde foutmelding toegevoegd over codefragmenten
  • Verbetering van REST API
  • Verbeterde UI & UX

10.31 – December 18, 2023

  • Een typefout in de voorwaardelijke logica opgelost
  • Video tutorial toegevoegd

10.3 – December 18, 2023

  • Nieuw ontwerp en branding
  • Nieuwe UI & UX

10.1

  • Herschrijf de plugin voor betere prestaties
  • Nieuwe UI & UX

10.0

  • Oplossing: stijlaanpassingen voor WordPress versie 5.5
  • Verbetering: ACE editor geüpdatet naar v1.4.12
  • Verbetering: verbeter snippet manager
  • Verbetering: tijdelijke optie toevoegen
  • Toegevoegd: optie om automatische inspringing uit te schakelen
  • Toegevoegd: nieuwe taalmodi
  • Oplossing: dubbele spatie werd omgezet naar een punt op mobiele toetsenborden
  • Oplossing: backspace werkt niet met sommige mobiele toetsenborden