=== ZenithStack Lead Magnet Generator === Contributors: zenithstack Tags: lead magnet, email list, AI, content generator, PDF Requires at least: 6.0 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 1.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Generate lead magnets as PDF downloads and collect email subscribers from your WordPress site. == Description == **Stop spending hours creating lead magnets.** ZenithStack Lead Magnet Generator turns a topic and a target audience into a polished, downloadable PDF — complete with branded cover page, formatted content, and a ready-to-embed opt-in form — in under two minutes. Built for bloggers, course creators, and online entrepreneurs who want to grow their email list without hiring a designer or writing 20-page guides from scratch. = How It Works = 1. **Enter a topic and audience** — Tell the AI what your lead magnet is about and who it's for 2. **AI generates the content** — Powered by Anthropic's Claude, you get a complete checklist with actionable items 3. **Review and publish** — Edit anything in the WordPress editor, then hit Publish 4. **Embed the opt-in form** — Drop a shortcode or Gutenberg block on any page 5. **Collect emails and deliver PDFs** — Subscribers get an instant download, you get their email = Features = * **AI-powered content generation** — Creates complete, well-structured checklists using Anthropic Claude * **Professional PDF output** — Branded cover page, accent colors, numbered items, and call-to-action page * **Beautiful opt-in forms** — Responsive email capture forms via shortcode `[almg_lead_magnet id="XX"]` or Gutenberg block * **Automatic PDF delivery** — Subscribers receive the download instantly after entering their email * **Subscriber management** — View, filter, and export your email list as CSV * **Custom branding** — Set your company name, accent color, and logo for every PDF * **Spam protection** — Honeypot fields, rate limiting (5 submissions per IP per hour), and nonce verification * **Encrypted API key storage** — Your Anthropic key is encrypted with AES-256-CBC before saving to the database * **Generation limits** — Free tier includes 3 generations per month to control API costs * **GDPR-friendly** — IP addresses are anonymized in the subscriber table * **Gutenberg block** — Select a lead magnet, customize the title and button text, and preview it live in the editor = Who Is This For? = * **Bloggers** who want to turn readers into subscribers * **Course creators** building pre-launch email lists * **Coaches and consultants** offering free resources to attract clients * **Affiliate marketers** using lead magnets to build segmented lists * **Anyone** who needs a professional lead magnet without the design hassle == Installation == = Automatic Installation = 1. Go to **Plugins > Add New** in your WordPress dashboard 2. Search for "ZenithStack Lead Magnet Generator" 3. Click **Install Now**, then **Activate** = Manual Installation = 1. Download the plugin ZIP file 2. Upload the `zenithstack-lead-magnet-generator` folder to `/wp-content/plugins/` 3. Activate the plugin through the **Plugins** menu in WordPress = Setup = 1. Go to **Lead Magnets > Settings** 2. Enter your Anthropic API key (get one at [console.anthropic.com](https://console.anthropic.com/)) 3. Click **Test Connection** to verify it works 4. Optionally set your company name and accent color under PDF Branding 5. Go to **Lead Magnets > Create New** to generate your first lead magnet == Frequently Asked Questions == = Do I need an Anthropic API key? = Yes. The plugin uses Anthropic's Claude API to generate lead magnet content. You can get an API key at [console.anthropic.com](https://console.anthropic.com/). Anthropic charges based on token usage — a typical lead magnet generation costs a few cents. = What formats are available? = The current version generates checklists — structured lists of actionable items with titles and descriptions. More formats (ebooks, cheat sheets, workbooks, templates) are planned for future releases. = Is the plugin free? = The plugin itself is free. You only pay for Anthropic API usage, which is based on how many tokens each generation uses. The free tier allows 3 lead magnet generations per month. You can increase this limit in Settings. = Can I edit the generated content? = Absolutely. Every generated lead magnet is saved as a WordPress post that you can edit in the standard WordPress editor. Change the title, rewrite sections, add your own content — it's fully editable before you publish. = How do I display the opt-in form on my site? = Two ways: 1. **Shortcode:** Add `[almg_lead_magnet id="123"]` to any post, page, or widget (replace 123 with your lead magnet's ID) 2. **Gutenberg block:** Search for "Lead Magnet Opt-In" in the block inserter, select your lead magnet, and customize the title and button text = Where do subscribers go? = Subscribers are stored in your WordPress database. View them at **Lead Magnets > Subscribers**, where you can filter by lead magnet and export the full list as a CSV file for import into Mailchimp, ConvertKit, or any email service. = Is it GDPR compliant? = The plugin anonymizes IP addresses before storing them and links to your site's Privacy Policy page on the opt-in form. However, you are responsible for your own GDPR compliance — make sure your privacy policy covers email collection. = What happens if the AI generation fails? = You'll see a clear error message explaining what went wrong (invalid API key, rate limit, network issue, etc.). Your generation count is only incremented on successful generations, so failed attempts don't count against your monthly limit. = Can I customize the PDF design? = Yes. Go to **Lead Magnets > Settings** and set your company name, accent color, and whether to show your site logo on the cover page. These settings apply to all generated PDFs. == Screenshots == 1. Create New Lead Magnet — Enter a topic, audience, and tone, then click Generate 2. Generated Content Preview — AI-created checklist with numbered items 3. Settings Page — API key, generation limits, and PDF branding options 4. Frontend Opt-In Form — Responsive email capture with accent-colored button 5. Subscribers List — View and export collected emails with filtering 6. Generated PDF — Professional cover page, branded checklist items, and CTA page == External services == This plugin connects to the Anthropic API to generate lead magnet content using AI. * **Service**: Anthropic Claude API * **When data is sent**: When a user clicks "Generate" to create a new lead magnet * **What data is sent**: The blog niche, target audience description, topic, and selected format/tone. No personal visitor data is sent. * **Service URL**: https://api.anthropic.com * **Terms of Use**: https://www.anthropic.com/terms * **Privacy Policy**: https://www.anthropic.com/privacy The plugin requires users to provide their own Anthropic API key. No data is sent without explicit user action. == Changelog == = 1.0.0 = * Initial release * AI content generation powered by Anthropic Claude (claude-sonnet-4-20250514) * Checklist format with structured items (title + description) * Professional PDF generation with TCPDF — cover page, numbered items, CTA page * Custom PDF branding: company name, accent color, site logo * Frontend opt-in form via `[almg_lead_magnet]` shortcode and Gutenberg block * Automatic PDF delivery after email submission * Subscriber management with filtering, pagination, and CSV export * Rate limiting: 5 form submissions per IP per hour * Honeypot spam protection on opt-in forms * AES-256-CBC encrypted API key storage * Monthly generation limits (default: 3 per month for free tier) * GDPR-friendly IP anonymization * WordPress 6.0+ and PHP 7.4+ compatible == Upgrade Notice == = 1.0.0 = Initial release. Install, add your Anthropic API key, and start generating lead magnets.