=== Grounded ===
Requires at least: 6.0
Requires PHP: 5.6.20
Stable tag: 1.3.1
License: GPLv2 or later

Puts your Grounded assistant on every page of your site, and tells it when you publish, update or trash a post.

== Description ==

Grounded — answers grounded in your docs. It answers your customers' questions from your own documentation, cites the section it used, and says so when the documentation does not have the answer. Start free at https://grounded.buzz

This plugin does two things:

* Prints the widget's loader script in the footer of every page, from the bot key you paste in Settings → Grounded.
* Tells Grounded's webhook the address of a post, page, WooCommerce product or any other kind of content you choose when it is published, updated, unpublished, trashed or deleted — and when a product goes out of stock or comes back — so the assistant reads it again within minutes. The ping carries no content. Saving an Advanced Custom Fields options page has the whole site read again.

Your content reaches the assistant through a sitemap source (WordPress publishes one at /wp-sitemap.xml). Setup: https://grounded.buzz/docs/wordpress

== Installation ==

1. Upload the plugin and activate it.
2. Settings → Grounded: paste the bot key, the webhook address and the webhook secret, and tick the kinds of content to report.
3. Press "Send test ping".

== External services ==

This plugin loads a script from, and sends requests to, the Grounded address set in its settings (https://grounded.buzz by default). The ping contains the web address of a changed post and the secret you configured, and nothing else.

== Changelog ==

= 1.3.1 =
* Fields to leave out is a list to tick: the fields of the ACF groups you send, sub-fields under their parent, and your extra fields. Nothing to type. What you typed into 1.3.0 stays left out and is shown ticked.

= 1.3.0 =
* Fields to leave out: list, under Settings → Grounded, the fields that run the site rather than answer anyone — an ACF field's name or its label, one per line. Nothing inside a field left out is sent either.
* A choice field set to return both value and label is now one line with its label (`Weekday: Monday`), not two lines with `Value` and `Label`. Images and files are left out whatever they return, an address included.
* Grounded reads every item again at its next run after the update, so the change reaches posts nobody edits.

= 1.2.0 =
* The widget opens in the language of the page: Polylang's, WPML's, or the site's language. If your bot answers in several languages (Settings → Languages in Grounded), its buttons and welcome follow the visitor.

= 1.1.3 =
* Changing what is sent (ACF groups, extra fields, the address pattern, private posts, product details) now makes Grounded read every item again at its next run. Before, nothing had changed as far as it could tell.

= 1.1.2 =
* Advanced Custom Fields: tick the field groups to send under Settings → Grounded. None is sent until you do, a group added later stays out until ticked, and password fields are never sent. A ticked group applying to a post follows its text, groups, repeaters and flexible content read all the way down.

= 1.1.0 =
* A private channel for a WordPress that is only a backend: Grounded reads posts, pages, products and any custom type directly, as cleaned text, with a key you make in Settings → Grounded. Nothing changes for a site that does not make one.
* Pings now name the changed item as well as its address.
* Updating from 1.0.0 keeps your settings; a small table of removals is created the first time the new version loads.

= 1.0.0 =
* First release.
