=== V7 Low Stock Filter ===
Contributors: thevaibhaw
Tags: woocommerce, low stock, stock filter, inventory, stock management
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a "Low Stock" filter view to the WooCommerce Products admin screen with a configurable stock threshold and optional email notifications.

== Description ==

**V7 Low Stock Filter** is a lightweight WooCommerce admin enhancement that helps store owners quickly identify products running low on stock.

= Features =

* **Low Stock View** — Adds a "Low Stock" link alongside All, Published, Draft, Trash on the Products admin screen.
* **Configurable Threshold** — Set your own stock threshold (default: 5 units).
* **Variable Product Support** — Detects low stock on individual product variations.
* **Email Notifications** — Optionally receive an email alert when a product drops below a specified stock level.
* **Backorder & Draft Filtering** — Choose whether to include backorder-allowed products and drafts.
* **Native WordPress UI** — No custom CSS or JavaScript; looks and feels like core WordPress.
* **HPOS Compatible** — Fully compatible with WooCommerce High-Performance Order Storage.

= How It Works =

1. Navigate to **Products → All Products** in the WordPress admin.
2. Click the **"Low Stock"** view link to see all products with stock at or below your threshold.
3. Configure your threshold and notification options at **WooCommerce → Settings → Products → Low Stock**.

= Privacy =

This plugin does not collect, store, or transmit any personal data. It does not make any external API calls, and it does not include any tracking or telemetry code.

== Installation ==

1. Upload the `v7-low-stock-filter` folder to your `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Ensure **WooCommerce** is installed and active.
4. Configure settings at **WooCommerce → Settings → Products → Low Stock**.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. V7 Low Stock Filter requires WooCommerce to be installed and active. If WooCommerce is not active, the plugin will display an admin notice and gracefully disable itself.

= What is the default low stock threshold? =

The default threshold is 5 units. You can change this at **WooCommerce → Settings → Products → Low Stock**.

= Does it work with variable products? =

Yes. The plugin checks stock levels on individual product variations. If any variation has low stock, the parent variable product will appear in the filtered list.

= Will it slow down my site? =

No. The plugin uses efficient `WP_Query` calls with proper meta queries. It only runs on the admin Products screen and has zero impact on the frontend.

= Does the plugin support WooCommerce HPOS? =

Yes. The plugin declares full compatibility with WooCommerce High-Performance Order Storage (HPOS).

== Screenshots ==

1. Low Stock view link on the Products admin screen.
2. Settings page under WooCommerce → Settings → Products → Low Stock.

== Changelog ==

= 1.0.0 =
* Initial release.
* Low Stock view link on Products admin screen.
* Configurable stock threshold.
* Optional email notifications.
* Support for variable products, backorders, and draft filtering.
* HPOS compatibility.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
