FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager
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. Why 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. Features 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. Powerful Smart Conditional Logics We have added smart conditional logic to let you choose precisely where you want to execute your code. These conditional logics include User’s Login State or Role Type of Pages Post Types Taxonomy or Term-Based Rule By Page / Post URL Target Specific Page / Post / CPT Date Based Conditions FluentCRM Tag / Lists based rule of the current contact 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 Adding custom PHP Code to extend functionalities Adding Header and footer codes (Google Analytics / Pixel / Ads codes) Custom CSS for specific post/page types Custom Javascript codes Dynamic Content to different types of places like before/after post content or footer Dynamic Shortcode Other Plugins By The Same Team FluentCRM – Email Marketing, Newsletter, Email Automation and CRM Plugin for WordPress Fluent Forms – Fastest WordPress Form Builder Plugin Ninja Tables – Best WP DataTables Plugin for WordPress Ninja Charts – Best WP Charts Plugin for WordPress WPPayForm – Stripe Payments Plugin for WordPress Mautic Integration For Fluent Forms Fluent Forms PDF – PDF Entries for Fluent Forms FluentSMTP – WordPress Mail SMTP, SES, SendGrid, MailGun Plugin 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.
Top keywords
- code28×2.23%
- snippet25×1.99%
- snippets21×1.67%
- custom17×1.36%
- fluentsnippets17×1.36%
- type16×1.28%
- php15×1.20%
- snippet type12×0.96%
- add11×0.88%
- code snippets9×0.72%
- conditional9×0.72%
- site9×0.72%
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts
Woody Code Snippets is a WordPress plugin that helps you insert code into your site without editing theme files. Many WordPress users still add PHP, JavaScript, CSS, tracking pixels, or ad scripts directly into functions.php, header.php, or footer.php. This approach breaks easily when themes update and becomes hard to manage as your site grows. Woody solves this by giving you a centralized code snippet manager where you can safely add header scripts, footer scripts, PHP snippets, custom CSS, JavaScript, and HTML from the WordPress admin. You can use Woody as a header and footer code manager, a PHP snippet plugin, or a way to reuse content and scripts across your site using shortcodes or automatic insertion. Each snippet can be enabled or disabled instantly, placed in specific locations like before content or after paragraphs, and shown only when certain conditions are met. Quick Links 📘 Documentation – Complete setup and configuration guide 💬 Support Forum – Community help and expert support ⭐ Go Pro – Unlock advanced features and priority support What Problems Does Woody Solve? Woody is built for real WordPress workflows. It helps you: Insert code into headers and footers without editing theme files Add analytics scripts, tracking pixels, and ad code safely Manage PHP snippets without touching functions.php Reuse scripts and content across pages using shortcodes Control where code runs using placement rules and conditions Enable, disable, or roll back snippets without breaking your site Whether you are building client sites, running marketing experiments, or maintaining your own project, Woody gives you control without unnecessary complexity. How It Works Woody lets you create code snippets and control where and when they run, all from the WordPress admin. Example #1 Create a JavaScript snippet and add your analytics or tracking code. Place it in the site header and add a condition to exclude administrators so your own visits are not tracked. Example #2 Create a text snippet with reusable content or a shortcode. Add conditions to show it only to logged-in users, then insert it anywhere using the snippet shortcode or automatic placement rules. This makes it easy to manage repeated logic and content without editing theme files. Who Should Use Woody Code Snippets Woody is designed for: Developers who want a structured way to manage custom code Marketers adding analytics, ads, and tracking scripts Solopreneurs who want flexibility without editing theme files Agencies managing multiple sites and shared snippets If you regularly need to insert code into WordPress, Woody fits naturally into your workflow. Supported Snippet Types Woody supports multiple snippet types, so you can manage all custom code in one place. You can create: PHP snippets for functions, hooks, classes, and global variables JavaScript snippets for analytics, integrations, and interactive features CSS snippets to add custom styles without editing theme files HTML snippets for markup and layout elements Text snippets using the WordPress editor for reusable content Ad snippets for ads and banners Universal snippets that combine PHP, HTML, CSS, and JavaScript Why do you need this plugin? Insert Google AdSense Ads, Amazon Native Shopping Contextual Ads, Yandex Direct Ads, Media.net on your website. Insert Google Analytic Tracking code, Yandex Metrika Tracking Code, Yandex Counter to Header, Footer. Insert PHP Code Snippets and execute on your website. Register PHP functions, classes, global variables everywhere. Insert Social media widgets, add any external resources widgets. Insert Facebook Pixels, Facebook Scripts, Facebook og:image Tag, Google Conversion Pixels, Vk Pixels. Header and Footer Code Management Woody works as a full header and footer code manager. You can insert snippets: – Into the site header before the closing tag – Into the site footer before the closing tag Common examples include analytics scripts, tracking pixels, verification tags, and global JavaScript or CSS. Advanced Placement Options Beyond headers and footers, Woody lets you insert snippets into specific locations. You can place code: Before or after post or page content Before or after a specific paragraph Before or after a post Inside archives, categories, and taxonomy pages Between posts on archive pages WooCommerce Pages Woody supports automatic snippet placement on WooCommerce pages. You can insert snippets: Before or after the product list Before or after a single product Before or after the single product summary After the product title, price, or excerpt Common use cases include conversion tracking, promotional banners, custom JavaScript, and trust notices. Shortcodes and Reusable Content Woody supports shortcodes so you can insert snippets exactly where you need them. You can place snippets inside posts, pages, widgets, and page builders. With Pro, you can define custom shortcode names that are readable and portable across sites. Conditional Logic for Code Snippets Woody allows you to control when a snippet is displayed. [FREE] Available in the free version: – User role and registration date – Page, post type, or taxonomy – Referrer or cookie value [PRO] Advanced conditions available in Pro: – Device type, browser, and operating system – JavaScript availability or ad blocker detection – User country, visit depth, time of day, and total visits Conditions can be combined using AND and OR logic. Unlock advanced conditions with Woody Pro. Snippet Management and Organization Woody includes features to keep snippets organized and easy to manage. You can: – Enable or disable snippets instantly – Control execution order using priorities – Tag and clone snippets – Import and export snippets between sites Code Revisions and Rollback [PRO] With Pro, Woody automatically saves snippet revisions. You can view previous versions, compare changes, and restore earlier revisions if something goes wrong. This adds an extra layer of safety when working with custom code. Cloud Templates and Sync [PRO] Woody Pro includes cloud-based snippet templates. You can save snippets as templates and reuse them across multiple sites, which is especially useful for agencies and developers managing repeated setups. Settings and Developer Options Woody includes advanced settings for fine-grained control. You can: Preserve HTML entities without automatic conversion Execute shortcodes inside snippets Enable error email notifications Automatically activate snippets on save Fully remove plugin data on uninstall Code Editor The built-in editor includes: – Syntax highlighting and line numbers – Configurable indentation and tab size – Optional line wrapping – Automatic bracket and quote closing – Highlighting of matching variables and functions Use This Plugin Responsibly Woody allows you to run custom PHP, JavaScript, and CSS on your site. Always make sure you understand the code you add. Using unverified or outdated scripts may affect site security or stability. On multisite installations, only trusted administrators should have access to snippet creation. Woody includes safeguards such as snippet disabling, revisions, and error notifications, but it cannot validate third-party code you choose to run. Support Need help? Open a new thread in the WordPress support forum, and we will be happy to assist. Documentation Learn how to make the most of Woody with our detailed and user-friendly documentation. Woody is backed by Themeisle, trusted by over 1 million WordPress users worldwide.