=== CCZGR AI ===
Contributors: cczgr, speedyweb
Tags: rest-api, seo, metadata, meta-tags, api
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.0
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Read and write SEO meta_title, meta_description and focus_keyword via the WordPress REST API for posts, pages and custom post types.

== Description ==

CCZGR AI exposes three unified fields — `meta_title`, `meta_description` and `focus_keyword` — on the standard WordPress REST API for posts, pages and every custom post type that supports REST. The values are stored in whichever supported SEO plugin is active, so external tools and automations can read and write SEO metadata without knowing each SEO plugin's internal meta keys.

Supported SEO plugins:

* Rank Math (used when both are active)
* Yoast SEO

Only users who can edit a post may change its SEO metadata, and the focus keyword is hidden from users who cannot edit the post.

The plugin also provides an optional administrator-only endpoint to start an UpdraftPlus database backup on demand (only when UpdraftPlus is active) — handy right before a bulk metadata import.

== Installation ==

1. Upload the `cczgr-ai` folder to `/wp-content/plugins/`, or install the plugin through the Plugins screen in WordPress.
2. Activate the plugin through the Plugins screen.
3. Make sure Rank Math or Yoast SEO is active.
4. Read and write the `meta_title`, `meta_description` and `focus_keyword` fields through the REST API for any post, page or custom post type, e.g. `POST /wp-json/wp/v2/posts/<id>` with `{ "meta_title": "…", "meta_description": "…", "focus_keyword": "…" }`.

== Frequently Asked Questions ==

= Which SEO plugins are supported? =

Rank Math and Yoast SEO. If both are active, Rank Math is used.

= Do I need to configure anything? =

No. The plugin detects the active SEO plugin automatically and stores no settings of its own.

= What does the backup endpoint do? =

When UpdraftPlus is active, an administrator can send `POST /wp-json/cczgr-ai/updraft-backup` to start an UpdraftPlus database backup. The backup runs in the background.

== Changelog ==

= 2.0.0 =
* Rewritten as a lightweight "easy version" focused solely on reading and writing SEO metadata (title, description, focus keyword) via the REST API for posts, pages and custom post types.
* Removed the Composer dependencies, WebP conversion and the configuration endpoint.
* Added an explicit capability check on metadata writes and hardened the REST callbacks.
* Retained the on-demand UpdraftPlus database backup endpoint.

= 1.8 =
* Previous feature-complete release.
