Documentation · v1.0.0

TemplateSell Gated Downloads

Gate downloads behind a form, capture leads, and (with Pro) automate everything that happens next.

Introduction

TemplateSell Gated Downloads turns any file download into a lead magnet. You create a “gated file”, place it on any page with a shortcode or block, and visitors must submit a short form before the download unlocks. Every submission is stored as a lead you can search and export.

It works with any WordPress theme — the capture modal is rendered in the site footer and styled independently, so it never fights your theme's CSS. The free plugin is fully functional; Gated Downloads Pro adds automation, integrations, spam protection, and protected links.

Requirements

WordPress6.2 or higher
PHP7.4 or higher
PermissionsAn administrator account (manage_options) to configure the plugin

Installation

  1. In your WordPress admin, go to Plugins → Add New.
  2. Search for “TemplateSell Gated Downloads”, click Install Now, then Activate.
  3. A new Gated Downloads menu appears in the sidebar. You're ready to create your first gated file.

Prefer manual install? Upload the templatesell-gated-downloads folder to /wp-content/plugins/ and activate it from the Plugins screen.

Tip

On activation Gated Downloads registers the Gated Files post type and a leads database table automatically — no setup wizard required.

Quick start

  1. Go to Gated Downloads → Add New and give your gated file a title (e.g. 2026 Pricing Guide).
  2. In the Gate settings box, choose your file — upload from the Media Library or paste a URL — and set a button label.
  3. Publish. Copy the shortcode shown in the sidebar, e.g. [templatesell_gated_download id="123"].
  4. Edit any page or post, paste the shortcode (or add the Gated Download block), and update.
  5. Visit the page — click the button, and the capture modal appears. Submit it, then check Gated Downloads → Leads.

Creating a gated file Free

A gated file is the unit Gated Downloads protects. Each one has its own file, button label, and shortcode.

File source

In the Gate settings metabox you can pick between two sources:

Button label

The text shown on the button that opens the modal — for example Download the guide. If left empty, the default from Settings is used.

Form fields & behavior Free

Every gated file is its own form. In the Form Fields & Behavior box on the file's edit screen you choose exactly which fields it collects, in what order, and how it behaves after submit — independently of every other form. Leave the overrides off and the form simply inherits your global Settings, so existing forms keep working unchanged.

Choosing & ordering fields

Turn on Customize the fields for this form, then tick the fields you want and drag to reorder them. Mark any field Required. The standard field set is:

FieldStored as
Full NameName column
Email Address (always on)Email column
Phone NumberPhone column
CompanyWith the lead
Job TitleWith the lead
WebsiteWith the lead
CountryWith the lead
Tip

Need field types beyond text — dropdowns, checkboxes, unlimited custom fields, conditional logic? Those live in Gated Downloads Pro.

Messages & behavior

Turn on Customize messages & behavior to override, per form:

OptionWhat it does
Success messageThe confirmation shown after a successful submit. Blank = inherit the global default.
Submit button textThe label on the form's submit button. Blank = inherit.
Redirect URLIf set, the visitor is sent to this URL after submitting instead of the file download starting.

Notification

Turn on Customize the email notification to send this form's leads to a different address (or to silence notifications for this form only). Otherwise the global notification applies.

Categories Free

Gated files support a fully custom taxonomy — nothing is hardcoded. Create whatever categories fit your library (Guides, Datasheets, Case Studies…) under Gated Downloads → Categories, then assign them when editing a file. Categories are stored with each lead so you can see which topic drives sign-ups.

Displaying a gate Free

Shortcode

Place this anywhere shortcodes run — a page, post, or text widget:

[templatesell_gated_download id="123" label="Download the guide"]
AttributeRequiredDescription
idYesThe ID of the gated file (shown in the editor sidebar).
labelNoOverrides the button text for this instance only.
Tip

The Gated Files list has a Shortcode column — click any shortcode to copy it to your clipboard.

[tsgd id="123"] is a short alias of [templatesell_gated_download id="123"] — both render the same form, so use whichever reads better in your content.

Block

In the block editor, add the Gated Download block, then pick a gated file from the dropdown and (optionally) set a custom label. The block renders the same button and modal as the shortcode.

Tip

You can place the same gated file on multiple pages — leads record which page (source URL) each submission came from.

Settings Free

Under Gated Downloads → Settings you set the global defaults. Any form can override these on its own edit screen (see Form fields & behavior); forms that don't override inherit the values here.

SettingWhat it does
Default form fieldsThe fields new forms start with, and the fallback for forms that don't customize their own. Toggle which appear and whether they're required. Email is always collected.
Consent checkboxShow a GDPR-style consent line with your own wording; store whether each lead agreed.
Appearance (brand colors)Set a primary color (download & submit buttons, links, focus highlights, modal header icon) and a modal header color; a matching gradient is generated automatically. Colors apply everywhere the gate appears.
Admin notificationsEmail a chosen address whenever a new lead is captured.
Default button labelThe fallback label used when a gate or shortcode doesn't set its own.
DeliveryHow the file is handed over after submission (direct link / redirect).
Delete data on uninstallWhen enabled, removes the leads table and settings if you delete the plugin.

Leads & export Free

Every submission appears under Gated Downloads → Leads in a searchable, sortable table: date, name, email, phone, form, category, and consent. A Details column shows any extra fields the form captured (Company, Job Title, Website, Country…). Before your first lead arrives you'll see a short “how it works” guide.

Gated Downloads Leads screen showing the illustrated four-step onboarding and an Add your first gated file button
Gated Downloads → Leads — the first-run onboarding guides you from creating a gated file to capturing leads.

Click Export CSV to download all leads (formula-injection-safe) for your CRM or spreadsheet. Search narrows the list by name, email, phone, or file title.


Pro features Pro

Gated Downloads Pro is a separate add-on that attaches to the free plugin through its hooks — it never modifies free files, so the free plugin can update freely. Pro adds:

Gated Downloads Pro insights dashboard with lead totals, monthly trend, and active-feature status cards
Gated Downloads → Pro — the insights dashboard shows lead totals, this month's trend, and which Pro features are active.
FeatureDescription
Custom fieldsBeyond the free standard set, add unlimited custom fields of any type (dropdown, checkbox, textarea…) with conditional logic; values are saved with the lead.
AutoresponderAutomatically email the download link to each lead, with {name} {file} {file_url} {site} placeholders.
WebhooksPOST every new lead to any URL (Zapier, Make, your CRM).
Mailchimp & BrevoSubscribe each lead to your chosen email-marketing audience automatically.
reCAPTCHA v3Invisible, score-based spam protection on the capture form.
Protected linksDeliver files through signed, time-limited URLs; uploaded files are streamed so the real path stays hidden.
Insights dashboardA visual dashboard with lead totals, monthly trend, and active-feature status.

Activating Pro Pro

  1. Install and activate the free Gated Downloads plugin first (Pro requires it).
  2. Upload and activate Gated Downloads Pro. A new Gated Downloads → Pro dashboard appears.
  3. Enter your license key under Gated Downloads → Account to unlock updates and support.
  4. Configure integrations from the Pro dashboard tabs (Automation, Email Marketing, Security, Downloads, Custom Fields).
Gated Downloads Pro automation settings tab with toggle switches for webhook and autoresponder and Mailchimp fields
Pro → Automation — configure webhooks, the autoresponder, and email-marketing sync from tabbed, toggle-based settings.

If the free plugin is missing or outdated, Pro stays dormant and shows a notice instead of causing errors — so nothing ever breaks.


FAQ

Does it work with my theme and page builder?

Yes. The modal is rendered in the site footer and self-styled, so it works with any theme. The shortcode runs anywhere shortcodes do, including most page builders; the block works in the standard editor.

Where are leads stored?

In a dedicated table in your own WordPress database. Your data never leaves your site (unless you enable a Pro integration that sends it somewhere you choose).

Is it GDPR-friendly?

Gated Downloads offers an optional consent checkbox with custom wording, stores only what you ask for, hashes IP addresses with a salt, and can remove all its data on uninstall. You remain the data controller — pair it with your own privacy policy.

Can visitors bypass the form?

The download is delivered only after a valid submission. For stricter control, Pro's protected links stream files through signed, expiring URLs so the real file path is never exposed.

Will it slow down my site?

No. The capture CSS/JS load only on pages that actually contain a gate, and admin assets load only on Gated Downloads screens.

Support

Free plugin support is available on the WordPress.org support forum. Pro customers get priority support and updates through TemplateSell.

You can also reach us directly by email:

Tip

Including your WordPress version, PHP version, and the theme you're using helps us answer on the first reply.