=== AI Blog Writer - reblogger.ai ===
Contributors: reblogger.ai
Tags: ai writer, ai content, seo, auto blogging, rss
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn any URL or topic into a publish-ready, SEO-optimized WordPress post, with images, SEO meta, FAQ schema and RSS automation.

== Description ==

**AI Blog Writer - reblogger.ai** connects your WordPress site to [reblogger.ai](https://reblogger.ai), an AI writer that turns a URL or a topic into a complete, original article. You choose the language, length, tone and model. The finished article arrives in WordPress as a native post, with block editor content, a featured image and SEO meta already filled in.

= What you get =

* **Rewrite a URL or write about a topic.** Paste any public article to get a new, original version, or enter a topic plus optional keywords.
* **Full control over the result.** Choose from 26 output languages, four lengths (about 800 to 4,000 words), seven tones, point of view, target audience, focus keyword, FAQ section, key takeaways and your own instructions.
* **Native Gutenberg content.** Articles are imported as real blocks (headings, lists, images, FAQ), not as one big HTML blob. The classic editor works too.
* **Images in your media library.** The cover image becomes the featured image (with alt text) and inline images are copied into your media library, so nothing is hotlinked.
* **SEO done for you.** SEO title, meta description and focus keyword are written to Yoast SEO, Rank Math, SEOPress or All in One SEO. FAQ schema (JSON-LD) is added automatically.
* **Categories and tags.** Suggested categories and tags are assigned, created when missing (optional) or mapped to your existing categories.
* **Draft, review, publish or schedule.** Decide per article or per feed whether posts are saved as drafts, sent for review, published immediately or scheduled.
* **RSS and Atom automation.** Add feeds from news sites or blogs and let reblogger turn new items into articles on a schedule, with duplicate protection and a per-run limit.
* **Fast delivery.** reblogger notifies your site as soon as an article is ready. If your host blocks that, WP-Cron checks every two minutes instead.
* **Dashboard widget** with your credit balance and recent articles, an **Activity** log and an info box on every imported post.

= How it works =

1. Install and activate the plugin.
2. Go to **reblogger → Settings** and click **Connect to reblogger**. Sign in (or create a free account) and approve your site. No API key copy and paste needed.
3. Go to **reblogger → Create**, enter a URL or a topic and click **Generate article**. A minute or two later the post is in WordPress.

New reblogger.ai accounts include free credits. One credit covers one standard article; larger models and very long articles use more. See [pricing](https://reblogger.ai/pricing).

= Privacy and security =

* One-click **Connect** flow: the site receives its own API key that works only for this site. The key is stored encrypted and never shown again after saving.
* Capability checks and nonces on every screen and request, escaped output, and `wp_safe_remote_*` for all outgoing requests.
* Notifications from reblogger.ai are never trusted on their own: the plugin re-checks every generation with its own API key before importing anything.
* No tracking, no data about your visitors is sent anywhere.

== External services ==

This plugin is a client for the **reblogger.ai** service (operated by reblogger.ai, https://reblogger.ai). It cannot write articles without it. It connects to the service in these situations:

* **Connecting your site** (when an administrator clicks "Connect to reblogger"): your browser is sent to `https://reblogger.ai/app/connect` with your site address (home URL), site name, the address to return to and a random security token. After you approve, WordPress sends the one-time connection code and your site address to `https://reblogger.ai/api/v1/connect/exchange` and receives an API key for this site. Disconnecting calls `https://reblogger.ai/api/v1/connect` to revoke that key.
* **Creating an article** (when you click "Generate article" or when an automation feed runs): the source URL or topic and keywords, plus the options you selected (language, length, tone, model, image settings, audience, point of view, focus keyword, extra instructions) and the address of this site's notification endpoint are sent to `https://reblogger.ai/api/v1/articles`. reblogger.ai fetches public source URLs itself to write the article.
* **Checking progress and importing** (while an article is being written, every two minutes via WP-Cron and when reblogger.ai notifies your site): the plugin requests the generation status and the finished article from `https://reblogger.ai/api/v1/generations/…` and `https://reblogger.ai/api/v1/articles/…`, and downloads the article images into your media library.
* **Showing your account** (settings screen, dashboard widget, Create screen): your plan, credit balance and the list of available AI models are requested from `https://reblogger.ai/api/v1/account` and `https://reblogger.ai/api/v1/models`.

Every request includes this site's API key and a user agent with the plugin version, WordPress version and your site address. No WordPress passwords, user accounts, visitor data or post content other than what you send for an article are transmitted. Generated articles are stored in your reblogger.ai account.

reblogger.ai only sends one kind of request to your site: a notification to `/wp-json/reblogger/v1/callback` when an article you started is finished.

RSS/Atom automation additionally downloads the feeds you add yourself from the websites that publish them.

* Terms of service: https://reblogger.ai/terms
* Privacy policy: https://reblogger.ai/privacy

== Installation ==

1. In WordPress go to **Plugins → Add New**, search for "reblogger" and click **Install Now**, then **Activate**. (Or upload the ZIP under **Plugins → Add New → Upload Plugin**.)
2. Open **reblogger → Settings** and click **Connect to reblogger**.
3. Approve the connection on reblogger.ai. You are sent back to WordPress automatically.
4. Optional: adjust the article defaults (language, length, tone, model), publishing options and SEO options and click **Save settings**.
5. Create your first article under **reblogger → Create**.

If the Connect button does not work in your setup (for example on a staging site behind a login), open **Advanced: paste an API key manually** on the settings screen and paste a key created under reblogger.ai → Developers.

== Frequently Asked Questions ==

= Do I need a reblogger.ai account? =

Yes. The plugin is free, the writing happens on reblogger.ai. New accounts get free credits so you can try it right away. Paid plans and credit packs are available at https://reblogger.ai/pricing.

= Which AI models can I use? =

The model list is loaded from your account, so you always see the current models and which ones your plan includes. "Recommended" uses the model reblogger.ai suggests for your account.

= Which languages are supported? =

English, German, Spanish, French, Italian, Dutch, Portuguese (European and Brazilian), Polish, Swedish, Danish, Norwegian, Finnish, Czech, Hungarian, Romanian, Greek, Russian, Ukrainian, Turkish, Arabic, Hindi, Indonesian, Japanese, Korean and Simplified Chinese. The plugin interface is translated into German; more interface translations follow on translate.wordpress.org.

= Will it publish without my review? =

Only if you want it to. The default is "Draft". You can choose "Pending review", "Publish immediately" or "Schedule" globally, per article and per feed. Authors who are not allowed to publish always create pending posts.

= Which SEO plugins are supported? =

Yoast SEO, Rank Math, SEOPress and All in One SEO. If none is active, the plugin outputs the meta description and FAQ schema itself (both can be switched off).

= Can I use the classic editor? =

Yes. Articles are stored as block markup, which the classic editor displays as regular HTML.

= My site is on localhost or behind a firewall. Does it work? =

Yes. reblogger.ai cannot notify local sites, so the plugin checks for finished articles every two minutes with WP-Cron instead. If `DISABLE_WP_CRON` is set, make sure a real cron job calls `wp-cron.php`.

= What happens if I run out of credits? =

Manual requests show a message with a link to buy credits. Automation pauses itself and tries again every six hours, or you resume it after topping up.

= Does the plugin create duplicates? =

No. Each request carries an idempotency key, feed items are remembered, source URLs that were already turned into posts are skipped, and imports are locked so a notification and a background check cannot create the same post twice.

= What happens on uninstall? =

All plugin settings, the API key, caches, scheduled events and internal job records are deleted. Your posts and media stay.

== Screenshots ==

1. Create screen: rewrite a URL or write about a topic, with live progress.
2. Settings: one-click Connect, article defaults, publishing, images and SEO.
3. Automation: RSS and Atom feeds with schedule and history.

== Changelog ==

= 2.0.0 =
* New: one-click "Connect to reblogger" flow with a site-scoped API key (stored encrypted). Manual key entry stays available as an advanced option.
* New: reblogger.ai API v1 with idempotent requests, instant callbacks and WP-Cron polling as a fallback.
* New: articles are imported as Gutenberg blocks with featured image, alt texts, re-hosted inline images, categories, tags and excerpt.
* New: SEO meta for Yoast SEO, Rank Math, SEOPress and All in One SEO, plus FAQ schema.
* New: Create screen with all options (language, length, tone, point of view, audience, focus keyword, model, images, FAQ, takeaways, instructions) and live progress.
* New: RSS/Atom automation with multiple feeds, per-feed options, schedules, run limits and duplicate protection.
* New: dashboard widget, Activity page, post info box and German (informal and formal) translation.
* Changed: requires WordPress 6.2 and PHP 7.4.
* Removed: the old domain-based free tier and version 1 API endpoints. Please reconnect your site after updating.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 2.0.0 =
Major update. reblogger.ai has a new API: after updating, open reblogger → Settings and click "Connect to reblogger". Version 1 keys no longer work.
