=== SPP Global Institutional Product Info ===
Contributors: simpliplugin
Tags: woocommerce, product tabs, compliance, shipping terms, sizing guide
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Inject global compliance and informational content into WooCommerce product detail tabs site-wide.

== Description ==

**SPP Global Institutional Product Info** simplifies site compliance setups by adding a dedicated product tab that displays globally configured informational content on every WooCommerce product page.

Use it to publish sizing guides, shipping terms, returns policies, care instructions, and other institutional copy once — then show it consistently across your entire catalog without editing individual products.

= Key Features =

* **Global content blocks** — Manage sizing, shipping, returns, and care instructions from one settings screen.
* **WooCommerce product tab integration** — Appends a custom tab via the `woocommerce_product_tabs` filter.
* **Layout renderer support** — Provides both `callback` and `layout_renderer` keys for standard WooCommerce and Simpli component layouts.
* **Automatic empty-state handling** — Sections without content are hidden; the tab is omitted when nothing is configured.
* **HPOS compatible** — Declares compatibility with WooCommerce High-Performance Order Storage.

= How It Works =

1. Configure your global informational sections under **WooCommerce → Institutional Product Info**.
2. The plugin filters the default product tab component layout mapping through `woocommerce_product_tabs`.
3. An extra tab row is appended with your custom label, priority, and layout renderer.
4. The renderer outputs your enabled global sections on every product detail page.

= Developer Hooks =

* `spp_gipi_product_tab_config` — Filter the tab configuration before it is appended.
* `spp_gipi_component_layout_tabs` — Filter the full tab mapping after the institutional tab is added.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install through the WordPress plugins screen.
2. Activate the plugin through the **Plugins** screen.
3. Ensure WooCommerce is installed and active.
4. Go to **WooCommerce → Institutional Product Info** to configure your global content.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active. The plugin displays an admin notice if WooCommerce is missing.

= Will this add content to every existing tab? =

The plugin appends one dedicated product tab that contains your global informational sections. This keeps compliance content centralized and easy to maintain.

= Can I change the tab title and position? =

Yes. Use the **Tab label** and **Tab priority** settings on the plugin settings page.

= Does uninstalling remove plugin data? =

Yes. Deleting the plugin removes its settings from the database.

== Screenshots ==

1. Settings page for global institutional product information.
2. Institutional product tab on a single product page.

== Changelog ==

= 1.0.0 =
* Initial release.
* Global content sections for sizing, shipping, returns, and care instructions.
* WooCommerce product tab integration with layout renderer support.
* HPOS compatibility declaration.

== Upgrade Notice ==

= 1.0.0 =
Initial release of SPP Global Institutional Product Info.
