# Snippets

### Code Snippets addon **[WHMCS](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/store/whmcs-addon-modules) | [Download](https://download.puqcloud.com/WHMCS/addons/PUQ_WHMCS-Code-Snippets/) | [FAQ](https://community.puqcloud.com/)

The Snippets section is available at: **Addons** > **PUQ Code Snippets** > **Snippets**

This is where you manage all your code snippets — view, filter, create, edit, toggle, duplicate, and delete.

![Snippets list — all snippets with filtering and actions](https://doc.puq.info/uploads/images/gallery/2026-02/embedded-image-mohlc7gw.png)
*03-snippets-list.png*

---

## Navigation Menu

The Snippets dropdown menu provides quick access to filtered views:

![Snippets dropdown menu](https://doc.puq.info/uploads/images/gallery/2026-02/embedded-image-maryrslq.png)
*06-snippets-menu.png*

| Menu Item | Description |
|-----------|-------------|
| **All Snippets** | Show all snippets regardless of area or status |
| **Add New** | Create a new snippet |
| **Client Area** | Show only snippets targeting the Client Area |
| **Admin Area** | Show only snippets targeting the Admin Area |
| **Active** | Show only enabled snippets |
| **Inactive** | Show only disabled snippets |
| **Scheduled** | Show only snippets with scheduling configured |

---

## Snippets List

The main table displays all snippets with sortable columns:

| Column | Description |
|--------|-------------|
| **#** | Priority number (lower = rendered first) |
| **Status icon** | Color indicator — enabled or disabled |
| **Name** | Snippet name and description |
| **Position** | Injection position: Head, After, Before |
| **Area** | Target area badge: CLIENT (blue), ADMIN (green), BOTH (purple) |
| **User Targeting** | Who sees the snippet: All, Logged-in, Guests, Client Group |
| **Schedule** | Date range or "Always" if no schedule is set |
| **Status** | ENABLED (green) or DISABLED (grey) badge |
| **Actions** | Action buttons (see below) |

---

## Actions

Each snippet has three action buttons:

| Button | Description |
|--------|-------------|
| **Edit** (pencil icon) | Open the snippet editor |
| **Toggle** (power icon) | Enable/disable the snippet with one click |
| **Delete** (trash icon) | Delete the snippet (with confirmation dialog) |

---

## Search

Use the search field in the top-right corner to filter snippets by name or description. The search works client-side and filters the table in real time.

---

## Add New Snippet

Click the **+ Add New** button to open the snippet editor and create a new snippet. See [Snippet Editor](06-snippet-editor.md) for details on all available settings.


<!-- sync:b1b769a4a7934269 -->