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

Por WPManageNinja
(54 avaliações)
Baixar
  • Versão:
    10.55
  • Última atualização:
    há 2 meses
  • Instalações ativas:
    mais de 50 mil
  • Versão do WordPress:
    6.0 ou maior
  • Testado até o WordPress:
    7.0
  • Versão do PHP:
    7.3 ou maior

Hospedagem WordPress com plugin FluentSnippets – The High-Performance file based Custom Code Snippet Plugin

Onde hospedar o plugin FluentSnippets – The High-Performance file based Custom Code Snippet Plugin?

Este plugin pode ser hospedado em qualquer provedor que tenha WordPress configurado. Recomendamos fortemente optar por uma hospedagem confiável, com servidores adaptados para WordPress, como o serviço de hospedagem WordPress da MCO2.

Hospedando o plugin FluentSnippets – The High-Performance file based Custom Code Snippet Plugin em um provedor confiável

A MCO2, além de instalar o WordPress na versão mais atual para seus clientes, oferece o plugin WP SafePress, um mecanismo exclusivo que salvaguarda e melhora seu site ao mesmo tempo.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização automática de imagens e fotos, proteção da página de login, bloqueio de atividades suspeitas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

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. Read, audit, or contribute to the full source code on GitHub.

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.

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 — and 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.

Por que o FluentSnippets?

FluentSnippets stores the code snippets in the flat file and uses code blocks in each snippet file to add metadata like a description, title, conditional logic, snippet type, and other things. We also parse these data once and cache these into index.php so we don’t have to parse these code blocks in every request. Then on runtime, it just includes those files to your selected action hook. In the whole process, FluentSnippets runs 0 database queries. In fact, we don’t have any Database query in the whole plugin runtime.
With this native design, FluentSnippets is native, secure by design, and the most performant code snippets in this category.

Recursos

  • 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.
  • Custom Code Snippets: Write your custom code snippets including PHP, JS, CSS, HTML, and more. Categorize your snippets with groups, tags, etc
  • Advanced Conditional Logic: Execute code snippets solely under specified conditions like post type, date, URL, user type, and many more.
  • Automatic Error Handling: The automatic error hander prevents common errors when adding custom snippets to ensure they never break your site.
  • Custom Shortcode: With custom shortcode of your snippets, you can create custom dynamic content blocks and use them across your site and manage them.
  • 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.

Lógicas condicionais inteligentes e poderosas

We have added smart conditional logic to let you choose precisely where you want to execute your code. These conditional logics include

  • Estado de log-in ou função do usuário
  • Tipo de páginas
  • Post Types
  • Regra baseada em taxonomia ou termo
  • Por URL da página / post
  • Segmentar página / post / CPT específico
  • Condições baseadas em data
  • Regra baseada em tags/listas do FluentCRM para o contato atual

These conditions are grouped-based, which means you can add multiple groups with a set of conditions and if any of the group match the condions it will execute the snippet.

Snippet Types

FluentSnippets has four types of snippets. You can choose the snippet type from the snippet type selection.

Functions – PHP Snippet: This snippet is for all the PHP code that you need to execute in specific areas like you would write in your theme’s functions.php file.
You can use this snippet type to create functions/classes, hook into other actions and filters, and more.

Content – PHP + HTML Snippet Type: This snippet type is used to insert content to different places like header, footer, after-post content, before-post content, etc. You can write php / html / js / css code in this snippet type.

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.

Internal Design of FluentSnippets Plugin

The design is super simple and this is what it should be! FluentSnippets stores the code snippets in the flat file and uses code blocks in each snippet file to add metadata like a description, title, conditional logic, snippet type, and other things. We also parse these data once and cache these into index.php so we don’t have to parse these code blocks in every request. Then on runtime, it just includes those files to your selected action hook. In the whole process, FluentSnippets runs 0 database queries. In fact, we don’t have any Database query in the whole plugin runtime.
With this native design, FluentSnippets is native, secure by design, and the most performant code snippets in this category.

Popular use cases of this Code Snippet plugin

  • Adição de código PHP personalizado para estender funcionalidades
  • Adição de códigos no cabeçalho e rodapé (Google Analytics / Pixel / Ads)
  • CSS personalizado para tipos específicos de post/página
  • Códigos JavaScript personalizados
  • Conteúdo dinâmico em diferentes locais, como antes/depois do conteúdo do post ou no rodapé
  • Shortcode dinâmico

Other Plugins By The Same Team

CONTRIBUTE

If you want to contribute to this project or just report a bug, you are more than welcome. Please check repository from Github. FluentSnippets was known as Easy Code Manager before. We have rebuild & rebranded it to FluentSnippets.

Capturas de tela

Painel do FluentSnippets

Painel do FluentSnippets

Visão geral da tela do editor de snippets

Visão geral da tela do editor de snippets

Visão geral das configurações

Visão geral das configurações

Comparação de design arquitetural

Comparação de design arquitetural

Do mesmo author (WPManageNinja)

Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder
(780 avaliações)

Obtenha um plugin de formulário de contato rápido. Crie formulários avançados usando o construtor de formulários de arrastar e soltar com todos os recursos inteligentes.

FluentCRM – E-mail newsletter, automação, e-mail marketing, campanhas de e-mail, opt-ins, leads e solução de CRM
(249 avaliações)

O plugin de e-mail marketing, newsletter, automação de marketing e solução de CRM mais fácil e rápido para WordPress

Ninja Tables – Easy Data Table Builder
(471 avaliações)

Best WordPress table builder plugin packed with versatile features to create fully responsive data tables of any kind.

Fluent Booking – A solução definitiva para agendamento de compromissos, reserva de eventos e calendário de eventos
(42 avaliações)

A solução definitiva para agendar compromissos, reuniões, webinars, eventos, chamadas de vendas e mais.

FluentCommunity – Rede social, comunidade, LMS e cursos on-line de alto desempenho e ultra-rápida
(86 avaliações)

Obtenha um plugin de comunidade rápido e completo. Crie comunidades e cursos ilimitados com recursos robustos de rede social e LMS.

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler
(34 avaliações)

Sell Subscriptions, Physical Products, Digital Downloads easier than ever. Built for performance, scalability, and flexibility.