=== AI Prompt Vault ===
Contributors: anthonyacosta
Donate link: https://www.buymeacoffee.com/americanczar
Tags: ai, prompts, chatgpt, claude, prompt-library
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 3.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Save, organize, and reuse your best AI prompts in a private library. Dashboard widget + front-end shortcode. Pro upgrade unlocks unlimited prompts, search, sort, favorites, and JSON import/export.

== Description ==

**AI Prompt Vault** is your personal AI prompt library inside WordPress.

Quickly save system prompts, few-shot examples, chain-of-thought templates, role prompts, and optimized outputs from ChatGPT, Claude, Grok, Midjourney, and more.

**Free Features:**

* Dashboard widget — add, edit, delete up to 15 prompts via AJAX (no page reloads)
* Inline edit — click ✏️ Edit to pre-fill the form; no retyping
* Image attachment — attach a screenshot or output image from the Media Library
* Visibility control — per-prompt: 🌐 Public / 🔐 Members / 🔒 Admin
* Front-end shortcode `[ai_prompt_vault]` — responsive card grid
* Copy-to-clipboard button on every card
* Theme-aware styling — inherits your active theme's colors and fonts

**Pro Features (license required):**

* Unlimited prompts
* Search prompts by title, text, or category
* Sort by Newest / Oldest / A→Z / Favorites first
* Favorite / pin important prompts
* JSON Export — download your entire library as a portable file
* JSON Import — restore or merge from an export file
* Shortcode category filter: `[ai_prompt_vault category="seo"]`
* Priority support

[Purchase Pro at kennedymedia.com/aipromptvault](https://kennedymedia.com/aipromptvault)

== Installation ==

1. Upload the `ai-prompt-vault` folder to `/wp-content/plugins/`
2. Activate the plugin through the **Plugins** menu
3. The **🔒 AI Prompt Vault** dashboard widget appears immediately
4. To activate Pro: **Settings > AI Prompt Vault** → enter your license key

== Frequently Asked Questions ==

= How many prompts can I save on the free plan? =

Up to 15 prompts. Upgrade to Pro for unlimited.

= How do I get a Pro license? =

Purchase at [kennedymedia.com/aipromptvault](https://kennedymedia.com/aipromptvault). You will receive a license key by email. Enter it under **Settings > AI Prompt Vault**.

= Can I use my license on multiple sites? =

Each license covers one site. Deactivate from Settings to move it to another site.

= How do I edit a prompt? =

Click **✏️ Edit** on any saved prompt in the widget. The form pre-fills with all data. Click **💾 Update Prompt** to save, or **Cancel** to abort.

= How does visibility work? =

* **Public** — shown to all visitors via shortcode
* **Members** — shown only to logged-in users
* **Admin** — shown only to administrators

= How do I export my prompts? =

Pro users: click the **⬇️ Export JSON** button in the widget. A `.json` file downloads containing all prompts (text only — images are not exported).

= How do I import prompts? =

Pro users: click **⬆️ Import JSON** and select a previously exported file. Prompts are merged with your existing library.

= Where is my data stored? =

All prompts are stored in `wp_options` as a single serialized array — fast, lightweight, and included in standard WordPress backups.

= Does it work with Divi? =

Yes. The front-end shortcode uses CSS custom properties that Divi exposes (`--et_primary`, `--et_body_font_family`), so cards inherit your Divi color scheme and fonts automatically.

== Screenshots ==

1. Dashboard widget — add/edit form with visibility dropdown, image attachment, and Pro search/sort bar
2. Saved prompts list — visibility badges, favorite stars, inline edit and delete buttons
3. Settings page — license activation, feature comparison table
4. Front-end shortcode — responsive card grid with theme-matched colors and copy button

== Changelog ==

= 3.0.0 =
* NEW: Pro tier with license key activation (Settings > AI Prompt Vault)
* NEW: Free plan capped at 15 prompts with upgrade prompts at limit
* NEW: Search prompts by title, text, or category (Pro)
* NEW: Sort by newest / oldest / A-Z / favorites first (Pro)
* NEW: Favorite / pin prompts with ⭐ indicator (Pro)
* NEW: JSON Export — download full prompt library (Pro)
* NEW: JSON Import — merge from export file (Pro)
* NEW: Shortcode category filter attribute (Pro)
* NEW: Settings page (Settings > AI Prompt Vault) with feature comparison table
* NEW: Daily license revalidation via wp_cron
* NEW: uninstall.php for clean removal of all plugin data
* IMPROVED: All JavaScript extracted to admin.js / frontend.js (WP.org compliant — no inline scripts)
* IMPROVED: wp_localize_script used for all PHP→JS data passing
* IMPROVED: Limit warning admin notice on dashboard when approaching/at free cap
* IMPROVED: Multisite cleanup on uninstall

= 2.0 =
* Inline editing, visibility control, image attachment fix, copy-to-clipboard, theme-aware CSS

= 1.2 =
* Added donation/support section

= 1.0 =
* Initial release

== Upgrade Notice ==

= 3.0.0 =
Major update — adds Pro licensing, search, sort, favorites, and import/export. Existing prompts carry forward automatically. No data migration needed.

== Additional Information ==

- Plugin URI: https://kennedymedia.com/aipromptvault
- Author: Anthony Acosta
- Author URI: https://anthonyacosta.me
