=== WooCommerce Highlighted Products Widget ===
Contributors: blueskiesdigital
Tags: woocommerce, highlighted products, widget, shortcode, sidebar
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display hand-picked highlighted products in your sidebar to redirect SEO traffic into sales.

== Description ==

WooCommerce Highlighted Products Widget lets store owners choose default highlighted products and optionally override them per post. Output is rendered via the `[wrpw_products]` shortcode so it can be placed in widget areas or post content.

Features:

* Email gate for administrator unlock (one-time setup).
* Choose default WooCommerce products on the settings screen.
* Per-post overrides via the Highlighted Products (WRPW) metabox on public post types.
* Shortcode supports hardcoded IDs: `[wrpw_products ids="12,34,56"]`.
* Skips hidden or invalid products automatically.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the zip via Plugins → Add New.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Ensure WooCommerce 7.0+ is installed and active.
4. Go to WooCommerce → Highlighted Products Widget, unlock with your email, choose default products, and save.
5. Add `[wrpw_products]` to a widget area or page content.

== Frequently Asked Questions ==

= Does this collect visitor emails? =

No. Only the site administrator email used to unlock the plugin is collected and sent to the plugin author.

= What if a product becomes private? =

Products that are not visible to the catalog are skipped automatically when the shortcode renders.

== Screenshots ==

1. Settings and email gate under WooCommerce.
2. Per-post product override metabox.

== Changelog ==

= 1.0.0 =
* Initial release: shortcode widget, email gate, disposable-domain block, HTTPS JSON lead delivery to blueskiesdigital.com (fixed endpoint in plugin), product cards with 90px centered images, white card background, title/description line-height 1.5.

== Upgrade Notice ==

= 1.0.0 =
Initial release.

== Privacy Policy ==

This plugin collects the site administrator’s email address when they unlock the plugin. That address is sent to the plugin author only via an HTTPS POST to a fixed endpoint on blueskiesdigital.com (no separate email notification from the plugin). No visitor data is collected.

== Lead endpoint (plugin author only) ==

Leads are POSTed as JSON to the URL defined by `WRPW_LEAD_ENDPOINT` in `woo-highlighted-products-widget.php`. The URL must use HTTPS and the hostname must be `blueskiesdigital.com` (or a subdomain). Store owners cannot change this in wp-admin.

Expected JSON body keys: `email` (lead), `site` (WordPress home URL), `source` (`wrpw`), `version` (plugin version). Return HTTP 2xx to acknowledge success.

Optional filters for the author’s own builds: `wrpw_lead_sync_payload`, `wrpw_lead_sync_request_args`, `wrpw_after_lead_http_sync`.
