=== CitePin ===
Contributors: motormatt
Tags: ai, content, seo, aeo, local seo
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate AI-optimized, citation-ready content and audit your Google Business Profile — without leaving WordPress.

== Description ==

CitePin helps your business get cited by AI answer engines (ChatGPT, Claude, Google AI) and win local search. From your WordPress dashboard you can:

* **Generate full articles** — turn a topic/keyword into a complete, AEO-optimized article saved as a draft.
* **Run a Local / Google Business Profile audit** — get a local score, profile breakdown, and prioritized fixes.
* **Build local citations** — get a NAP kit, the exact directories to submit to, and ready-to-paste listing descriptions.
* **Import drafts from CitePin** — pull any article you generated in CitePin in as a WordPress draft. Works even on sites that block incoming REST connections, because the plugin reaches out to CitePin and saves the draft locally.

Generated content is created as a standard WordPress draft, so it inherits your theme's styling automatically.

A free CitePin account is required (a Pro plan is required for content generation and audits). Get an API key at https://app.citepin.com → Account → API key.

== External services ==

This plugin connects to the CitePin API (https://app.citepin.com) to generate content and run audits. This is required for the plugin to function.

* **What is sent, and when:** When you click "Generate" the plugin sends the topic/keyword, content type, audience, and your site URL. When you click "Run audit" it sends the business name, city, category, and your site URL. Requests are sent only when you take those actions, and are authenticated with the API key you enter in Settings.
* **Service provider:** CitePin (Need A Name Media).
* Terms of Service: https://citepin.com/terms
* Privacy Policy: https://citepin.com/privacy

== Installation ==

1. Install via Plugins → Add New → Upload Plugin (upload the zip), or copy the `citepin` folder to `wp-content/plugins/`.
2. Activate the plugin.
3. Go to CitePin → Settings and paste your CitePin API key (from https://app.citepin.com → Account → API key).
4. Use CitePin → Generate to create content, or CitePin → Local Audit to audit your local presence.

== Frequently Asked Questions ==

= Do I need an account? =
Yes. A free CitePin account is required, and a Pro plan is required to generate content and run audits.

= Where does the content go? =
Generated articles are saved as WordPress drafts for you to review and publish.

== Changelog ==

= 1.4.0 =
* More content types (Product Description, Case Study, Pillar Page).
* Generated content now uses CitePin's improved, more human writing engine.
* Accessibility: scoped table headers, labelled fields, and screen-reader text across all screens.

= 1.3.0 =
* Added "Import drafts from CitePin" — pull saved articles in as WordPress drafts. Works on sites that block inbound REST writes.

= 1.2.0 =
* Added Citation Builder — NAP kit, directory submission list, and listing descriptions.
* More reliable connection handling.

= 1.1.0 =
* Added Local / Google Business Profile audit.

= 1.0.0 =
* Initial release: API-key settings and keyword-to-draft content generation.
