=== Cadosy SEO & Site Management API ===
Contributors: cadosy
Tags: rest api, seo, content management, sitemap, redirects
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

REST API for SEO and content management, used by the WPControl service.

== Description ==

Cadosy SEO & Site Management API adds a small, focused REST API to your WordPress site so the
WPControl service can manage SEO metadata and content on your behalf. Every
endpoint requires an authenticated administrator (the `manage_options`
capability), so only trusted users can call the API.

The plugin provides the following capabilities:

* **SEO meta** — read and update SEO title, description, focus keyword, canonical
  URL, robots directives, and Open Graph fields. It bridges to RankMath or Yoast
  SEO when one of them is active, and falls back to its own lightweight meta-tag
  output otherwise.
* **Sitemap** — inspect the core WordPress sitemap, toggle search-engine
  visibility, and exclude specific post types or taxonomies.
* **Redirects** — list, create, and delete simple path-based redirects.
* **Permalinks** — read and update the permalink structure.
* **Block editing** — list, insert, update, delete, and reorder blocks in a post.
* **Custom CSS** — read and update the theme custom CSS.
* **Revisions** — restore a post to an earlier revision.
* **Export** — export published content as JSON (read-only).
* **Internationalization** — list languages and post translations when Polylang
  or WPML is active (read-only).
* **Forms** — list forms and entries when Contact Form 7 or WPForms is active
  (read-only).
* **Email settings** — read the current email/SMTP configuration (read-only).
* **Analytics summary** — return basic content statistics (read-only).
* **Health** — report plugin and environment status.

This plugin does not make outbound network requests, execute arbitrary code, or
access arbitrary files. It stores no secrets.

== Installation ==

1. Upload the `cadosy-seo-site-management-api` folder to the `/wp-content/plugins/`
   directory, or install the plugin through the WordPress plugins screen
   directly.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. The REST API becomes available under the `ai-site-controller/v1` namespace.
   All requests must be authenticated as a user with the `manage_options`
   capability.

== Frequently Asked Questions ==

= Who can use the REST API? =

Only authenticated administrators. Every endpoint checks the `manage_options`
capability, so requests from logged-out visitors or lower-privilege users are
rejected.

= Does this plugin send data to external servers? =

No. The plugin only exposes a REST API on your own site. It performs no outbound
network requests and stores no third-party secrets. The WPControl service
connects to your site using standard authenticated WordPress REST requests.

= Does it require RankMath or Yoast SEO? =

No. If RankMath or Yoast SEO is active, the SEO endpoints read and write that
plugin's meta. If neither is active, the plugin uses its own meta keys and
outputs basic meta tags in the page head.

= What happens to my data if I uninstall the plugin? =

The plugin stores a small number of options (redirects and sitemap exclusions)
and post meta. These remain in the database unless removed manually.

== Changelog ==

= 1.0.0 =
* Initial release.
