=== Agile Snowglobe for WordPress and WooCommerce ===
Contributors: agilesnowglobe
Tags: blog, seo, content, woocommerce, automation
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.1.0
WC requires at least: 7.0
WC tested up to: 9.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Receives the grounded, cited posts Agile Snowglobe writes for your site, and keeps Snowglobe's knowledge of your WooCommerce products current so every post quotes the right prices.

== Description ==

Agile Snowglobe reads your website, writes one grounded blog post per scheduled day, checks it with a second model, adds a banner, infographics and schema, and waits for your approval. This plugin brings each approved post into WordPress and, on a WooCommerce store, tells Snowglobe what you sell.

Posts:

* Connect with one code: paste it and the plugin registers its own signed webhook. No site ids, keys or secrets to copy.
* New posts arrive the moment they are published (signed webhook), with a pull every 15 minutes as a safety net.
* Creates the post once and updates the same post on later edits, refreshes or a new banner; unchanged posts are skipped.
* Copies the banner and the infographics into your media library, so posts never hotlink.
* Sets the meta title and description for Yoast SEO and Rank Math, and prints the Article and FAQPage JSON-LD.
* Acknowledges the live URL back to Agile Snowglobe so the canonical points at your site.

WooCommerce:

* Sends every published, visible product to Agile Snowglobe: name, price and sale price, price range for variable products, currency, stock, SKU, categories, tags, visible attributes and descriptions. Posts then quote today's prices and link the right products.
* Saving a product sends the change a minute later in the background; trashing or unpublishing it removes it. A full upload runs when you connect and from the settings page, 100 products at a time.
* Nothing about customers or orders is ever sent.
* Appends a product grid for the products each post links to, or place the [snowglobe_products] shortcode yourself.

== Installation ==

1. Plugins → Add New → Upload Plugin, choose the zip, install and activate.
2. In your Agile Snowglobe dashboard open the site, then Integrations → WooCommerce and WordPress plugin → Create connection code.
3. In WordPress open Settings → Agile Snowglobe, paste the code and press Connect. Published posts and your products start syncing in a moment.
4. Keep the dashboard's WordPress connector (the application-password one) disconnected, otherwise each post is published twice.

== Frequently Asked Questions ==

= Does it overwrite my edits? =
A later update from Agile Snowglobe replaces the content of the same post. Edit in the Snowglobe review screen if you want the change to stick; those edits also teach the writer your voice.

= What if a post is unpublished in Agile Snowglobe? =
The plugin sets the WordPress post to draft on the post.unpublished event.

= Which product data leaves my store? =
Only public catalogue data of published, visible products, the same things a shopper sees on the product page. Hidden and password-protected products are never sent.

= My store is on a different domain than the site in Agile Snowglobe =
Products are accepted only for the site's domain or its subdomains (shop.example.com for example.com). Add the store's domain as its own site if it is separate.

= Does the shortcode need WooCommerce? =
Yes. Without WooCommerce it prints nothing.

== Changelog ==

= 1.1.0 =
* Connect with one code from the dashboard; the plugin registers its own signed webhook.
* WooCommerce product knowledge: products are sent to Agile Snowglobe on save and in a background full upload.
* Infographics now arrive in the post body and are copied into the media library with the banner.
* Unchanged posts are skipped; webhooks answer immediately and pull in the background.
* The plugin checks in after each sync, so the dashboard shows its status and version.
* Fixed: sync status was not saved when "Sync now" ran from the settings page.
* Secrets are no longer printed back into the settings page.

= 1.0.0 =
First release: pull sync, signed webhooks, featured image, SEO meta, schema, canonical acknowledgement, WooCommerce product cards.
