=== IntelligenceBank Assets Connector ===
Contributors: intelligencebank
Tags: digital asset management, dam, media library, images, video
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Insert images, video, audio and documents from your IntelligenceBank platform into WordPress.

== Description ==

The IntelligenceBank Assets Connector lets you browse your IntelligenceBank digital asset management platform from inside WordPress and insert approved assets into your content.

Insert an asset in one of two ways:

* **Public link.** The asset is displayed from IntelligenceBank, so updates to the asset are reflected on your site.
* **Media Library copy.** The file is downloaded into your WordPress Media Library.

The connector is available:

* As the **IntelligenceBank** block in the block editor.
* As an **IntelligenceBank** tab in the WordPress media window, used by the Classic editor, featured images, the Image block's Media Library and page builders such as Elementor.

You need an IntelligenceBank account to use this plugin. [Learn more about the IntelligenceBank Assets Connector for WordPress](https://help.intelligencebank.com/support/solutions/articles/51000505083-about-the-intelligencebank-assets-connector-for-wordpress).

= External service =

This plugin loads the IntelligenceBank connector app from `ucprod.intelligencebank.com` (or `ucstaging.intelligencebank.com` when the Staging environment is selected) in the editor, so you can sign in to IntelligenceBank and choose assets. When you insert a Media Library copy, your site downloads the file from your IntelligenceBank platform. Nothing is sent to IntelligenceBank from your site's visitors, other than loading assets you inserted as public links.

* [IntelligenceBank Terms of Use](https://intelligencebank.com/terms/)
* [IntelligenceBank Privacy Policy](https://intelligencebank.com/privacy/)

== Installation ==

1. Install and activate the plugin from Plugins > Add New.
2. Optionally, go to Settings > IntelligenceBank to pre-fill your platform URL, turn on browser (single sign-on) login, or choose which insertion types are allowed.
3. In the block editor, add the **IntelligenceBank** block and choose **Choose asset**. In the Classic editor, choose **Add Media**, then the **IntelligenceBank** tab.

== Frequently Asked Questions ==

= Which users can insert assets? =

Anyone who can edit posts can insert public links. Only users who can upload files can add Media Library copies.

= My Media Library copy fails with "The download host is not in the allowed hosts list". =

WordPress only downloads files from hosts listed under Settings > IntelligenceBank > Allowed download hosts. The default covers every intelligencebank.com address. If your platform uses a custom domain, add it there.

= Why does version 2.0 need WordPress 6.6? =

Version 2.0 is built with WordPress's current development tools, and the code they produce depends on a component WordPress added in version 6.6. On earlier versions the IntelligenceBank block would not load, so WordPress does not offer the update. Sites on earlier versions can keep using version 1.2.6, which continues to work.

= Do I have to update to 2.0? =

No. WordPress shows that an update is available, and your site stays on your current version until you choose to update (unless you have turned on auto-updates for this plugin). Sites below WordPress 6.6 are not offered 2.0 and can keep using 1.2.6.

= Will my existing IntelligenceBank blocks keep working after updating to 2.0? =

Yes. Content created with earlier versions opens in the editor without changes.

== Changelog ==

= 2.0.1 =
* Media Library copies no longer send a legacy session cookie with the download. The download link already carries the session.

= 2.0.0 =
* Renamed to IntelligenceBank Assets Connector (previously IntelligenceBank Connector).
* Tested up to WordPress 7.1. The IntelligenceBank block now uses Block API version 3, so the WordPress 7 editor keeps its iframed layout.
* New Settings > IntelligenceBank page: platform URL, custom domain, browser login, insertion mode and allowed download hosts.
* Media Library copies now use the WordPress REST API, require the upload files capability and only download from allowed hosts.
* Messages from the connector app are only accepted from the IntelligenceBank origin.
* Block output is escaped on the front end.
* Removed the debug log file and the jQuery dependency.
* Requires WordPress 6.6 and PHP 7.4 or later. On older sites the plugin switches itself off and explains how to go back to 1.2.6.

= 1.2.6 =
* Tested up to WordPress 6.6.

== Upgrade Notice ==

= 2.0.1 =
Removes an unused cookie from Media Library copy downloads. No settings or content change.

= 2.0.0 =
Requires WordPress 6.6 and PHP 7.4. Adds a settings page and makes the connector ready for WordPress 7. Existing content is unchanged.
