=== Overrank Content Publisher ===
Contributors: overrank
Tags: seo, blog, automation, content, publishing
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Publish your Overrank SEO articles to WordPress automatically. It pulls on a schedule, so it works behind any firewall.

== Description ==

Overrank Content Publisher connects your WordPress site to your Overrank account and publishes your AI-written, SEO-optimized articles as native WordPress posts. Real, indexable pages on your own domain.

It uses a **pull** model: your site polls Overrank on a schedule (outbound only), so nothing needs to connect *into* your site. It works behind Cloudflare, Wordfence, and other hardened hosts with no firewall or code changes.

Features:

* Publishes your Overrank articles as native WordPress posts.
* Updates in place on re-sync (never creates duplicates).
* Sets the post category and featured image automatically.
* Removes posts you delete in Overrank.
* Syncs every 15 minutes, plus a "Sync now" button.

This plugin is the official, first-party plugin developed by overrank. "Overrank" is a trademark of overrank.

== External service ==

This plugin connects to Overrank (https://www.overrank.ai), a commercial SEO content service, to fetch the articles generated for your account. An active Overrank account and a pull token are required.

On each sync, the plugin sends your site URL and your pull token to `https://www.overrank.ai/api/wordpress/pull` to retrieve your own articles, and posts a confirmation of published post IDs to `https://www.overrank.ai/api/wordpress/ack`. No visitor or personal data is sent.

* Terms of service: https://www.overrank.ai/legal/terms
* Privacy policy: https://www.overrank.ai/legal/privacy

== Installation ==

1. Install and activate the plugin.
2. Go to **Settings -> Overrank Content Publisher**.
3. In your Overrank dashboard, go to **Settings -> Connect your website -> WordPress**, choose the automatic (pull) option, and copy the token.
4. Paste the token into the plugin settings and click **Save token**. Your articles publish automatically from then on.

== Frequently Asked Questions ==

= Does this work behind a firewall? =
Yes. Your site only makes outbound requests to Overrank, so WAFs like Cloudflare or Wordfence never block it.

= How often does it sync? =
Every 15 minutes via WP-Cron, plus a nudge when an administrator loads the dashboard. You can also click "Sync now" at any time.

= Do I need an Overrank account? =
Yes. This plugin publishes the articles from your paid Overrank account. See https://www.overrank.ai.

= Will it overwrite posts I edit in WordPress? =
Overrank is the source of truth for the articles it publishes, so a re-sync updates those posts to match your Overrank content.

== Changelog ==

= 2.1.1 =
* Namespaced all functions and constants so this plugin can never collide with the older Overrank plugin that was distributed as a zip file.
* Activating this plugin now switches the older one off automatically. Your connection token and existing posts carry over, so there is nothing to redo.
* The sync schedule now repairs itself, so an update can never leave a site silently unsynced.

= 2.1.0 =
* Renamed to Overrank Content Publisher.
* Added full plugin headers and external-service disclosure.

= 2.0.0 =
* Pull model for firewall-proof publishing (no inbound connection required).
