
Transform your WordPress site into a powerful lead generation machine. Protect your valuable digital assets while growing your email list automatically.
Lead Magnet Locker is the simple yet powerful solution for WordPress users who want to exchange valuable content for email addresses. Whether you’re offering eBooks, templates, guides, or any digital download, this plugin creates a secure gateway that protects your files while building your audience.
Unlike other complex lead generation tools, Lead Magnet Locker focuses on doing one thing exceptionally well: turning visitors into subscribers through irresistible content offers.
Updating is automatic: your existing files are moved to the private folder, and your shortcodes, download links and statistics keep working.
Your files are stored in a private, randomly named folder that cannot be reached by direct URL, on Apache, Nginx and other servers alike. The public form never reveals the file name, and only users who provide their email address receive a unique, trackable download link.
Install, upload your files, add a shortcode. That’s it. No complicated configurations or technical knowledge required.
Set exactly when your offers are available with our powerful scheduling system. Perfect for limited-time promotions or coordinated marketing campaigns.
Track every interaction with comprehensive reporting. See who downloaded what and when, monitor conversion rates, and optimize your lead magnets based on real data.
Clean, responsive forms that match your site’s design and convert visitors into subscribers without looking spammy or pushy.
Add this shortcode anywhere you want to display a lead capture form:
[lead_magnet file="your-guide.pdf"]
Make it your own with these parameters:
[lead_magnet file="marketing-guide.pdf" title="Get Your Free Marketing Guide" description="Join 5,000+ marketers who use this proven framework" button_text="Download Now"]
Available Parameters:
* file (required): Name of a file uploaded on the Lead Magnet admin page, exactly as shown in the Manage Files list
* title: Custom headline for your form
* description: Compelling description of your offer
* button_text: Call-to-action button text
Supported File Types:
* PDF, ZIP
* Microsoft Office (Word, Excel, PowerPoint)
* Images (JPG, PNG, GIF)
* Text files
* Audio (MP3)
* Video (MP4)
Upload Process:
1. Access your WordPress admin dashboard.
2. Navigate to Lead Magnet.
3. Upload your file in the Upload New File box.
4. Copy its shortcode from the Manage Files list and paste it into a page or post.
Time-Limited Offers:
1. Go to Lead Magnet Settings.
2. Enable Date & Time Trigger.
3. Set your start and end dates.
4. Set the time on the start date and on the end date (forms stay visible continuously in between).
5. Your forms automatically appear and disappear.
The schedule is global: it applies to every lead magnet form on your site, whatever file it offers.
Use Cases:
* Launch week promotions
* Webinar follow-up resources
* Seasonal content offers
* Product launch campaigns
* Limited-time bonuses
Track Everything:
* Total email submissions
* Unique subscriber count
* Download completion (conversion) rate
* Who requested which file, and when they downloaded it
Export & Analysis:
* Export the download history to CSV with one click from the History page
* Search records by email or filename, then export only the matching results
* Compare files by searching the history for each file name
lead_magnet_max_file_size — Filter the max allowed upload size (in bytes).lead_magnet_accept_legacy_file_field — Filter (bool). Whether to accept the pre-1.3.0 file form field, sent by pages cached before the update. Default: true for 30 days after the upgrade moved your files (always true with LML_DISABLE_STORAGE_MIGRATION), false otherwise. Return false to stop accepting it once your page cache has been cleared, or true to keep accepting it.lead_magnet_locker_file_exists( $file ) — Returns true when a lead magnet file (the shortcode’s file value) is available. Use it instead of checking a path under wp-content/uploads/: since 1.3.0 files live in a private folder. Example: if ( function_exists( 'lead_magnet_locker_file_exists' ) && lead_magnet_locker_file_exists( 'guide.pdf' ) ) { ... }LML_DISABLE_STORAGE_MIGRATION — Define as true in wp-config.php to keep files in the pre-1.3.0 folder (no private folder, no migration). Only needed if you must stay able to downgrade to 1.2.x; it removes the extra protection on Nginx.Lead Magnet Locker is designed with privacy in mind:
* Email addresses are stored in your own WordPress database.
* No data is transmitted to external services.
* You maintain complete control over subscriber information: search, export (CSV), and delete records from the History page.
Lead Magnet Locker collects personal data (email addresses). Depending on where you and your visitors are, laws such as the GDPR may require you to inform visitors and obtain their consent; make sure your privacy policy covers this data. The plugin does not yet add a consent checkbox or integrate with the WordPress personal data export/erase tools.
Developed for the WordPress community by G.Maccario. Special thanks to all users who provided feedback and feature requests.