Code Snippets WHMCS Addon

Code Snippets WHMCS Addon

Developed By PUQ sp. z o.o.

Compatible with WHMCS v9.0

Introducing the PUQ Code Snippets WHMCS Addon

A powerful addon designed for WHMCS administrators who need to inject custom HTML, CSS, and JavaScript into Client Area and Admin Area pages — without editing any template files. Manage unlimited snippets with a built-in CodeMirror editor, advanced targeting (pages/users/products), scheduling, version history with rollback, and an emergency kill switch.

All-in-One Code Injection for WHMCS

PUQ Code Snippets eliminates risky template modifications and makes customizations maintainable. Add tracking scripts, chat widgets, UI tweaks, SEO tags, or custom JS enhancements safely — and control exactly where and when they load.

Advanced Targeting + Safe Control

Target Client Area, Admin Area, or both. Choose injection position (<head>, after <body>, before </body>), limit snippets to specific pages (35+ client pages, 40+ admin pages), match custom URL patterns, and segment by user type / client groups / active products & services. Add scheduling (start/end dates) and priority ordering to keep everything predictable.

Version History + Emergency Kill Switch

Every change is tracked with a complete version history and a diff view, and you can rollback any snippet in one click. If something goes wrong, use the Kill Switch to disable all snippets instantly (DB toggle, flag file, or secret URL).

Main Features

  • Unlimited Code Snippets — create as many snippets as you need, each with its own settings.
  • CodeMirror Editor — syntax highlighting for HTML/CSS/JS, folding, search, auto-close tags/brackets.
  • Three Injection Positions<head>, after opening <body>, or before closing </body>.
  • Area Targeting — Client Area, Admin Area, or both.
  • Page Targeting — checkboxes for 35+ client pages and 40+ admin pages.
  • Custom URL Patterns — fire snippet when URL contains a defined pattern.
  • User Targeting — all visitors, logged-in clients only, guests only, or specific client groups.
  • Product/Service Targeting — show/hide snippets based on client’s active products/services.
  • Scheduling — start/end dates for time-limited snippets.
  • Priority System — control rendering order.
  • Version History + Diff View — full change log per snippet.
  • One-Click Rollback — restore any previous version instantly.
  • Kill Switch — emergency disable all snippets (DB toggle / flag file / secret URL).
  • Import / Export — move snippets between WHMCS instances via JSON.
  • Dashboard — metrics, charts by area/position, recent changes log.
  • License system — online/offline license verification with graceful degradation.
  • English language interface.

How It Works

  1. Create a snippet (HTML/CSS/JS) in the module editor.
  2. Choose where it loads (Client Area / Admin Area) and position (head / body).
  3. Select targeting rules: specific pages, URL patterns, user segments, and/or products/services.
  4. (Optional) Set scheduling dates and priority.
  5. WHMCS renders the snippet automatically on matching pages — and you can rollback or disable instantly if needed.

License

The PUQ Code Snippets addon requires an active license for full functionality. The license is verified via PUQ Cloud license server and the result is cached (so the addon does not require a constant connection).

Module Documentation

https://doc.puq.info/books/code-snippets-whmcs-addon

 

There are no reviews yet!

Be the first to review Code Snippets WHMCS Addon.

Version Compatibility


Compatible with WHMCS v9.0

Full Version Compatibility


  • All versions of WHMCS v9.0
  • All versions of WHMCS v8.13
  • All versions of WHMCS v8.12
  • All versions of WHMCS v8.11
  • Selected versions of WHMCS v8.10
        8.10.0
  • Selected versions of WHMCS v8.9
        8.9.0
  • Selected versions of WHMCS v8.8
        8.8.0
  • All versions of WHMCS v8.7
  • All versions of WHMCS v8.6
  • All versions of WHMCS v8.5
  • All versions of WHMCS v8.4
  • All versions of WHMCS v8.3
  • All versions of WHMCS v8.2
  • All versions of WHMCS v8.1
  • All versions of WHMCS v8.0

Support for this product

The best place to start if you need help with a specific product is to contact the developer. All WHMCS Marketplace developers have both a website and support URL listed.

Developed By PUQ sp. z o.o.

Changelog

v1.0 Released February 16th, 2026

Latest Version


First release.

New Features

  • Unlimited code snippets with CodeMirror syntax-highlighted editor (HTML/CSS/JS)
  • Three injection positions: inside <head>, after <body>, before </body>
  • Area targeting: Client Area, Admin Area, or Both
  • Page targeting with checkboxes for 35+ client area pages and 40+ admin area pages
  • Custom URL pattern matching for targeting any page by URL substring
  • User targeting: All Visitors, Logged-in Clients Only, Guests Only, Specific Client Groups
  • Product/Service targeting: show or hide snippets based on client's active products
  • Scheduling with start and end dates
  • Priority system for controlling snippet rendering order
  • Complete version history log with side-by-side diff view
  • One-click rollback to any previous snippet version
  • Emergency kill switch via database toggle, flag file (module dir or WHMCS root), or secret URL
  • Import/Export of all snippets as JSON with base64-encoded code
  • Dashboard with key metrics, area/position charts, and recent changes
  • Snippets list with filtering by area (Client/Admin), status (Active/Inactive/Scheduled)
  • AJAX-based save/load for all pages
  • WHMCS friendly URL support for page detection
  • Admin area route-based URL support (e.g., /admin/index.php/admin/billing/invoice/123)
  • License verification system with online/offline modes
  • Dashboard accessible without active license, other pages restricted
  • English language interface

 

See also

FREE ResellerClub Tools v2

Working comfortably with ResellerClub's products and services through your WHMCS system requires additional tools.

Free
SEO Manager

The module developed to add meta description and meta keywords and change the page title

Free
WHOIS for Clients

WHOIS for Clients

Free
Dropbox Backup for WHMCS

This module will integrate WHMCS with Dropbox to upload a copy of WHMCS database onto the cloud. You will never have to worry about losing data any more.

Free
Software Licensing Addon

Build, License & Distribute Your Own Apps using WHMCS

Commercial