=== Creative Studio - AI Marketing Ads & Image Generator for WooCommerce ===
Contributors: adcontrolcenter
Tags: woocommerce, product images, ai images, ad creatives, ecommerce
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.18.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate professional AI-enhanced versions of your WooCommerce product images, right from your WordPress dashboard.

== Description ==

AdControlCenter turns your existing WooCommerce product photos into polished, store-ready images. Pick a product, click Generate, and get multiple enhanced versions to download or save straight into your media library — no design skills needed.

This plugin is a free, fully-functional client for the AdControlCenter image service (a third-party SaaS at adcontrolcenter.com). No plugin features are locked: every button works out of the box. The AI image generation runs on the external service, which includes a free weekly allowance and an optional one-time credit pack if you need more volume. You are paying the service for compute, never to unlock plugin code.

**What it does**

* Browse your WooCommerce products inside WP admin.
* Generate 1 or 3 enhanced versions of a product's main image.
* Preview results full-screen and zoom in to inspect detail.
* Download an enhanced image, or save it directly into your Media Library.
* Not happy with a result? Regenerate it with a short note describing what to change.
* Review every image you have generated on the History page.

**Free tier**

Every site gets a number of free image credits per week. Each generated image uses one credit. Need more? You can purchase a credit pack at any time — no subscription, one-time purchase.

**Requirements**

* WooCommerce must be installed and active.
* Your site must be reachable over the public internet so the service can fetch the source image you choose to enhance.

== Installation ==

1. Upload the plugin through **Plugins → Add New → Upload Plugin**, or install it from the WordPress plugin directory.
2. Activate it. Make sure WooCommerce is active.
3. Open **AdControlCenter** in the admin menu.
4. Pick a product and click **Generate**. Your enhanced images appear in a few seconds.

== Frequently Asked Questions ==

= Do I need an account to start? =

No. You can start generating images on the free weekly credits with no signup. To buy additional credits you complete a one-time checkout and paste the license key you receive into the plugin's Settings page.

= Does this modify my original product images? =

No. Generated images are separate. You choose whether to download them or save them as new entries in your Media Library. Your original product images are never changed.

= Does it work without WooCommerce? =

No. The plugin works with your WooCommerce product catalog and will prompt you to install WooCommerce if it is not active.

= Does this work on multisite? =

It is designed for single-site installs.

== Screenshots ==

1. The product grid — every WooCommerce product with Generate and View actions.
2. The full-screen results view with multiple enhanced versions.
3. Saving an enhanced image to the Media Library.
4. The History page listing every image you have generated.

== External services ==

This plugin relies on the AdControlCenter SaaS at adcontrolcenter.com to generate AI-enhanced product images and composed ad creatives. Generation happens on the external service; the plugin itself does not run any AI locally. Use of this plugin requires a working internet connection on the WordPress site.

**Service used: AdControlCenter (adcontrolcenter.com)**

What it does: receives your product image URL and product metadata, generates one or more enhanced images and/or composed ad creatives using third-party AI models, and returns the resulting image URLs to the plugin.

When data is sent: only when you take an explicit action in the plugin — clicking Generate, Regenerate, Create Ad, or redeeming a credit code. Nothing is sent in the background, on a schedule, or without a direct click from you.

What data is sent on each request:

* Your site URL (used to scope your free weekly credit allowance and validate your license key, if any).
* The public URL of the product image you chose to work on.
* Basic context for that image: product name, product ID, image role, and (for ad creatives) the message text you typed, the aspect ratio you chose, and whether you opted to show the product price.
* Your site logo URL (taken from the WordPress Customizer logo or site icon, if you have one configured).
* Your license key, only if you have redeemed one on the Credits page.
* Standard HTTP request metadata: plugin version, WordPress version, PHP version.

What is NOT sent: admin email addresses, user accounts, customer data, order data, or visitor analytics.

Service provider: AdControlCenter.

* Terms of service: [https://adcontrolcenter.com/terms](https://adcontrolcenter.com/terms)
* Privacy policy: [https://adcontrolcenter.com/privacy](https://adcontrolcenter.com/privacy)

The Privacy page includes a "WordPress Plugin" section that lists exactly which data the plugin sends, where it is stored, retention policy, and the third-party processors (such as the AI model providers) used by the service. The Terms page includes a section covering credit packs, license keys (one site per key), and refund policy.

== Changelog ==

For older entries, see changelog.txt in the plugin folder.

= 0.18.4 =
* Refreshed the Creative Studio header logo.

= 0.18.3 =
* Security: all inline SVG icon output is now escaped late with wp_kses (per WordPress.org review feedback).
* Replaced the server-side image download proxy with two save actions: "Save to product gallery" and "Save to media".
* Uninstall now fully removes plugin data: options, transients, and the history table.

= 0.18.2 =
* In-admin header now leads with the product brand: "Creative Studio" with the Ad Control Center mark as a "by …" attribution underneath. Requires `cs-logo.svg` in `admin/images/`.

= 0.18.1 =
* Display name updated to "Creative Studio - AI Marketing Ads & Image Generator for WooCommerce" (lead with the brand, per WordPress.org review feedback).

= 0.18.0 =
* Renamed for WordPress.org submission. Slug updated to creative-studio-ai-ad-image-generator. Text domain matches the new slug so WordPress.org translations resolve correctly. Admin menu label is now "Creative Studio". Main plugin file renamed to creative-studio.php.

= 0.17.5 =
* Send the plugin's verify.txt URL with every request so server-side site verification keeps working after the v0.17 slug rename (and any future renames).

= 0.17.4 =
* Tested against WordPress 7.0.
* Plugin-check pass: explicit suppression for the RENAME TABLE migration (table identifiers can't use prepared placeholders; values are not user input).

= 0.17.3 =
* Fixed: Credits and History pages now load CSS/JS properly (menu slugs were missed by the v0.17 rename).
* Fixed: history data preserved across the prefix change — old wp_acc_history table is auto-migrated to wp_adcc_history on first load.
* Fixed: cached credit count survives the upgrade (options auto-migrate from acc_ to adcc_).

= 0.17.2 =
* Renamed to "Ad Control Center - Creative Studio for WooCommerce" (dropped "AI" from the title). Slug updated to ad-control-center-creative-studio.

= 0.17.1 =
* Prefixed all locally-defined view variables to satisfy Plugin Check (no behavior change).

= 0.17.0 =
* Renamed to "Ad Control Center - Creative Studio for WooCommerce" with a new slug, per WordPress.org review feedback.
* Internal prefix changed from acc_ to adcc_ across PHP and JavaScript (no user-visible behavior change).
* New "External services" readme section disclosing what data is sent to adcontrolcenter.com and linking to its terms and privacy pages.

= 0.16.3 =
* Result-card actions laid out as a 2×2 grid — Download | Add to gallery on top, Regenerate | Create Ad on bottom.

= 0.16.2 =
* Plugin-check pass: sanitize the scenes[] POST array up-front so the scanner sees explicit input cleansing.

= 0.16.1 =
* Polished card actions: taller pill secondaries, the "View product" success state now matches the pill style with a soft green accent, slightly more breathing room above Create Ad.

= 0.16.0 =
* Card facelift: rounder corners, softer shadow, larger caption, pill-shaped action buttons, vibrant purple Create Ad CTA.

= 0.15.1 =
* Softer, calmer result-card buttons. Download is a single icon; Add to gallery and Regenerate are muted; Create Ad stays the prominent purple CTA.
* Cleaner Generate action bar — centered group with a hairline separator above; dropped the redundant "Pick a scene" hint.

= 0.15.0 =
* Cleaner Generate modal layout: scenes span the full width, Quality + Generate move to a single row below, with a live "N scenes selected" count.

= 0.14.0 =
* Mosaic results grid — ads of different aspect ratios pack tightly without cropping or whitespace gaps.
* Create Ad button restyled (purple + megaphone) so it stands out from the standard actions.
* Ad placeholders now show in the right aspect ratio while generating.

= 0.13.1 =
* Spinner countdown now matches the expected generation time per quality (Basic 18s / Standard 26s / High Quality 38s).

= 0.13.0 =
* Three quality tiers: Basic (1× credit), Standard (2× credits), High Quality (3× credits). Default is Basic.

= 0.12.1 =
* Send the site logo as context on Generate too (not only Create Ad), so the engine has a brand reference for every image.

= 0.12.0 =
* High Quality switch (Standard 1× / High Quality 3× credits) on both Generate and Create Ad.
* Create Ad now runs in the background — the modal closes on submit and the result appears in your results grid with an "Ad" tag.
* Ad modal shows a preview of the source image you're creating the ad from.
* Regenerate an ad to tweak the message, aspect, price toggle, or quality.

= 0.11.1 =
* Create Ad: fixed the result viewer (was reading the wrong field shape from the response).
* Create Ad: ad creatives can now be downloaded and saved to the media gallery.

= 0.11.0 =
* Select multiple scenes and generate them in one go (atomic credit reservation — never overcharged).
* New "Create Ad" button: turn an enhanced image into a finished ad creative with your message and chosen aspect ratio.

= 0.10.2 =
* Crisper admin menu icon (true cutout SVG, scales properly at any size).

= 0.10.1 =
* Updated admin menu icon.

= 0.10.0 =
* Save now adds the image directly to the product's WooCommerce gallery.
* Free and paid credits shown as separate badges with an info dialog.

= 0.9.3 =
* Carousel "Generated" tag no longer shows "undefined" before a page reload.
* Green Buy button on the credit packs.

= 0.9.2 =
* Final plugin-check pass.

= 0.9.1 =
* WordPress.org plugin-check compliance pass.

= 0.9.0 =
* New Credits page: buy packs, redeem a code with confirmation, redemption history.
* Removed the separate Settings page (license redemption is now on Credits).

== Upgrade Notice ==

= 0.9.3 =
First public release.
