=== ai12z AI Copilot ===
Author URI: https://ai12z.com/about/
Plugin URI: https://docs.ai12z.net/docs/connectors/wordpress
Contributors: ai12z
Tags: business, ai, generativeai, search
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.1
Stable tag: 1.0.10

License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Go live with AI-powered search, chatbots, and copilot digital assistants.

== Description ==
The ai12z AI Copilot plugin connects your WordPress site to the ai12z platform. It does two things:

**1. Web controls.** The plugin automatically loads the ai12z web-component library on your site, so you can drop in AI-powered search, chatbot, and copilot widgets. The library version is configurable from the settings screen (leave it blank or set to "latest" for the newest release).

**2. Content sync.** Your content is kept in sync with ai12z automatically. Publishing, updating, or deleting a post or page sends the change to your ai12z connector in real time. A one-click **Initial Sync** button on the settings screen performs a bulk sync of your existing content, and a **Test** button verifies your configuration.

Configuration is a few fields — API Key, Connector Id, and Project Id from the ai12z portal, plus an optional Web Control Version.

== Frequently Asked Questions ==
= How do I get started? =
Sign up for a [free trial](https://app.ai12z.net/signup), then install the plugin and enter your connector details on the settings screen.

= Where can I find a connector or project id? =
* These IDs are provided by ai12z and can be found on the ai12z portal.
* Enter these IDs in the respective fields on the configuration screen.

= How do I sync my existing content? =
Open **Settings → ai12z Settings** and click **Initial Sync** to bulk-sync all existing pages and posts. After that, content stays in sync automatically whenever you publish, update, or delete a post.

= Which version of the ai12z web controls does the plugin load? =
By default the latest version. To pin a specific release, set the **Web Control Version** field on the settings screen. Leave it blank or set it to "latest" for the most recent version.

== Installation ==
1. Install the ai12z AI Copilot plugin either via the WordPress plugin directory or by uploading the files to your server at wp-content/plugins.
2. Activate the ai12z AI Copilot plugin through the 'Plugins' menu in WordPress.
3. Open **Settings → ai12z Settings**, enter your API Key, Connector Id, and Project Id, then click **Save Changes**.
4. Click **Test** to verify the configuration, then **Initial Sync** to sync your existing content.
[More Details](https://docs.ai12z.net/docs/connectors/wordpress)

== Changelog ==
= 1.0.10 July 13, 2026 =
* Custom content types now sync their full field text (post body plus custom fields — works with ACF, Pods, or plain meta) as the content
* You can exclude specific fields per custom content type from what gets sent
* Content is extracted the same way for the Initial Sync and for real-time updates, so both send identical content
* Replaces the per-field Title/Content/Description mapping introduced in 1.0.9

= 1.0.9 July 10, 2026 =
* Manage your ai12z connector settings from WordPress: selected content types are saved to your connector on Save Changes
* The settings screen loads your saved content types automatically when an API Key is set
* Initial Sync is enabled only after your API Key and content types have been saved to the ai12z connector
* Initial Sync now sends only the selected content types
* Custom content types can map their own fields onto the title, content, and description sent to ai12z
* Initial Sync: live per-item progress with a running success/error count
* Initial Sync: content is sent in paged batches with a short pause between them, so large sites (1000+ items) no longer time out
* API Key field is masked with a show/hide toggle

= 1.0.7 June 15, 2026 =
* Tested up to WordPress 7.0
* Documentation refresh

= 1.0.6 March 31st, 2025 =
* Bug fixes with intial sync custom content types

= 1.0.5 March 26th, 2025 =
* Bug fixes with custom content types

= 1.0.4 January 11th, 2025 =
* Updated CDN path for ai12z library include

= 1.0.3 September 4th, 2024 =
* The plugin automatically includes JS / CSS for AI12Z web component rendering
* Required API Key in settings for better security
* A button to test the configuration
* A button to start the initial sync

= 1.0.2 August 13, 2024 =
* Added JS / CSS web control includes
* Allow user to set the web control include version in the plugin settings

= 1.0.1 August 07, 2024 =
* Updated the hook endpoint

= 1.0.0 June 10, 2024 =
* Initial release

== Upgrade Notice ==
After upgrade makesure that ai12z Web Control Version in the settings is blank or above 2.0
