=== Redesign.ai Connector ===
Contributors: 66firmin
Tags: redesign, migration, woocommerce, page builder, rest api
Requires at least: 5.5
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your site to Redesign.ai: read your content to generate a modern redesign, and publish the redesigned pages as drafts.

== Description ==

**Redesign.ai Connector** links your WordPress site to the **Redesign.ai** service, which regenerates your site with a modern design while keeping your identity (logo, colors, content).

Once connected (using a WordPress application password), the plugin lets Redesign.ai:

* **Read your content faithfully**: pages, posts, menus, media, brand colors, fonts, contact details, social links, reviews, and products/listings — whether you use **WooCommerce, a custom content type (e.g. car or real-estate listings), or another system**.
* **Publish the redesign**: create and update redesigned pages, **full width**, **as drafts by default**. Nothing is published without your action.
* **Re-publish**: you edit in Redesign.ai and push again — the **same** page is updated.

= Why a plugin? =

The standard WordPress REST API does not expose everything (theme colors, custom fields, custom listings, and so on). The plugin reads this data cleanly for a redesign that is much more faithful than reading the HTML alone.

= Security =

* Authentication uses a WordPress **application password** (your main password is never transmitted).
* Publishing requires page-editing rights.
* Pages are created as **drafts**; publishing remains your choice.

== External services ==

This plugin connects your site to the third-party service **Redesign.ai** (https://ai-redesign.app).

* **What is sent**: when you authorize the connection from Redesign.ai, the service reads — through this plugin's REST endpoints — the public and brand content of your site (pages, posts, media, menus, colors, fonts, contact details, social links, products/listings) in order to generate a new version of your site. When you publish, Redesign.ai sends the HTML of the redesigned pages to your site.
* **When**: only after you have explicitly authorized the connection, and during the read/publish actions you trigger from Redesign.ai.
* **Terms of service**: https://ai-redesign.app/terms
* **Privacy policy**: https://ai-redesign.app/privacy

== Installation ==

1. Install and activate the plugin (Plugins → Add New).
2. Create an application password: Users → Profile → Application Passwords (or let Redesign.ai generate it through "Connect").
3. In Redesign.ai, choose "Connect WordPress" and authorize the connection.

== Frequently Asked Questions ==

= Does it change my live site? =
No. Pushed pages are created as **drafts**. You preview them and decide whether to publish.

= Are my credentials stored? =
The plugin only uses the WordPress application password (revocable at any time in your profile). Your main password is never transmitted.

= Does it work with WooCommerce? With another system? =
Yes. The plugin automatically detects WooCommerce, or the main content type (listings, real estate, and so on).

== Changelog ==

= 1.0.2 =
* Use a unique, consistent prefix for the settings page slug (redesignai-settings).

= 1.0.1 =
* Hardening: the full-page canvas render now outputs raw HTML only when the page author has the `unfiltered_html` capability; otherwise the content is passed through wp_kses_post (mirrors WordPress core post content handling).

= 1.0.0 =
* First public release: reads content/brand data (pages, colors, logo, fonts, menus, contact details, social links, reviews, SEO, universal products/listings) and publishes the redesigned pages as drafts.

== Upgrade Notice ==

= 1.0.2 =
Minor compliance fix (settings page slug prefix).

= 1.0.1 =
Security hardening of the page rendering.

= 1.0.0 =
First public release of the Redesign.ai connector.

== Privacy ==

This plugin does not collect or store personal data about your visitors. It exposes REST endpoints that the Redesign.ai service uses — after your authorization — to read your site content and publish pages. See the Redesign.ai privacy policy: https://ai-redesign.app/privacy
