| 开发者 | templatesell |
|---|---|
| 更新时间 | 2026年7月31日 22:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[tslgd_lock id="123"]your hidden content[/tslgd_lock]; the content is never present in the page source, unlocks instantly after submission, and stays unlocked for returning visitors[tslgd_link id="123"]any wording[/tslgd_link] turns a phrase or an existing link into the gate, when you don't want a button[tslgd_download id="123"], and paste it into any post or page. The shorter [tslgd id="123"] does the same thing, as does the Gutenberg block.[tslgd_lock id="123"]This is only visible after submitting the form.[/tslgd_lock]. Optional attributes: message, hint, button, and teaser (a short blurred preview line).templatesell-gated-downloads folder to /wp-content/plugins/, or install via Plugins → Add New.Yes — that is exactly what Gated Downloads does. The file stays locked behind the opt-in form; the moment a visitor submits their details, the download is delivered. You can gate any file type — PDF, spreadsheet, ZIP, image, audio, or video.
Yes. Besides the instant in-browser delivery, each lead automatically receives a clean email with their download link (you can switch this off under Settings → Notifications). Gated Downloads Pro lets you write your own subject line and message with placeholders.
Yes — every capture form ships with an invisible honeypot trap that silently blocks most bots, with zero configuration. For sites under heavier attack, Gated Downloads Pro adds score-based reCAPTCHA v3.
Create a gated file, add your download, and drop its shortcode on any page. The file stays locked until the form is submitted, so every download requires a completed form first. This lets you capture leads before file downloads and secure your downloads with a lead form — no code required.
Yes, natively. Search for "Gated Downloads" in the Elementor editor and drop the widget anywhere; pick the gated file, optionally override the button label, and set the alignment. The shortcode also works inside any Elementor text or shortcode widget if you prefer.
Yes. Wrap any wording in the link shortcode: [tslgd_link id="123"]Download the price list[/tslgd_link]. It opens the same capture form and is counted in analytics exactly like the button, but inherits your theme's link styling so it fits inside a sentence.
Yes. The plugin counts real file deliveries (not just form submissions). Turn on "Show download count" under Settings and visitors see "Downloaded 1,204 times" beneath the button — a proven bit of social proof. The count stays hidden until a file has at least one download, so a new file never advertises a zero. All-time downloads also appear on the Gated Files list.
Yes. Turn on Settings → Automatic Placement, pick the file, and choose whether the button goes before or after the content. You can limit it to specific post types and categories, add a heading above it, and exclude individual posts by ID. Every post also gets a small "Gated Downloads" box in the sidebar to use the site default, hide the button on that post, or offer a different file there. Posts that already contain the same file's shortcode or block are skipped automatically, so no post ever shows a duplicate button.
Yes — that is the Content Locker. Wrap the content in the lock shortcode and point it at any gated file: [tslgd_lock id="123"]hidden content[/tslgd_lock]. Visitors see a blurred placeholder with an "Unlock content" button that opens the same capture form; the moment they submit, the content appears in place — no page reload. The locked content is never present in the page's HTML source (it is fetched only after a verified submission), so it cannot be read by viewing the source or by caching plugins, and returning visitors who already submitted see it unlocked automatically. You can customize the placeholder with the message, hint, button, and teaser attributes.
Yes. Leave the file empty on a gated file and the form becomes a plain email opt-in — the visitor's details are captured and a success message (or your redirect URL) shows after they submit, with no download involved. Rename the button to "Subscribe", show just the email field, and you have a lightweight subscribe form.
Every file type is supported — there is no restriction. That includes PDF, Word (DOC/DOCX), Excel (XLS/XLSX), CSV, PowerPoint (PPT/PPTX), ZIP and other archives, images (PNG, JPG, GIF, SVG, WebP), audio (MP3, WAV), and video (MP4). You can either upload the file to the WordPress Media Library, or paste any direct file URL (for example a file hosted on cloud storage). If a browser can download it, you can gate it.
In a custom table in your WordPress database. Nothing is sent to any third party.
Yes — Gated Downloads → Leads includes a CSV export.
Yes. Open the "Form Fields & Behavior" box on any gated file to choose which fields that form shows, drag them into the order you want, and mark each one required or optional. Forms you do not configure use the global defaults from the settings page.
Yes. The pop-up is rendered at the root of the page, so theme wrappers with overflow or z-index rules cannot break it.
Yes. The modal uses proper ARIA roles, traps focus while open, closes on Escape, and returns focus to the trigger.
tslgd:lead and tslgd:download DOM events, so you (or an add-on) can hook into a successful capture without editing plugin files.[tslgd_link id="123"]Download the price list[/tslgd_link] turns any wording (or an existing styled link) into a gate trigger, for layouts where a button does not fit.[tslgd_lock id="123"]…[/tslgd_lock]. Shows a blurred placeholder with an unlock button; content appears in place right after submission (no reload) and stays unlocked for returning visitors. The locked content is never present in the page source, so view-source and page caching cannot leak it.