=== ToolGrid Embed ===
Contributors: toolgrid
Tags: embed, shortcode, toolgrid, iframe
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed ToolGrid tools on WordPress using the same Site toolkit setup (verified domain + site key) as the HTML snippet.

== Description ==

After you verify your domain and create a site key in your ToolGrid dashboard, paste the shortcode into any page or post.

The plugin outputs the ToolGrid embed container and loads `embed.js` once per page.

Use the **ToolGrid** card under **Integrations** on the Site toolkit dashboard to copy your shortcode and download this plugin as a ZIP.

== Installation ==

1. Download `toolgrid-wp-embed.zip` from your ToolGrid Site toolkit dashboard (Integrations → WordPress).
2. In WordPress admin, go to **Plugins → Add New → Upload Plugin**, choose the ZIP, then **Install Now** and **Activate**.
3. Paste the shortcode from your dashboard into a page or post (Block editor: Shortcode block, or Classic editor).

== Frequently Asked Questions ==

= Does this replace domain verification? =

No. You still verify your domain and manage keys in the ToolGrid dashboard, same as the HTML snippet.

= Can I use multiple tools on one page? =

Yes. Add multiple shortcodes; each renders a separate embed container. One `embed.js` script is loaded for the page.

= Can I use different site keys on the same page? =

Avoid mixing keys on one page. If you do, the script uses the **last** non-empty `site_key` from your shortcodes.

== Changelog ==

= 1.0.1 =
* Community embeds: optional `site_key` — when omitted or empty, loads `embed.js` without `data-site-key` (same as Add to website on ToolGrid).

= 1.0.0 =
* Initial release: `toolgrid_embed` shortcode and footer-loaded embed.js.
