=== Drip Content for WooCommerce ===
Author: Petr Zeman
Tags: woocommerce, content dripping, membership, shortcode, restrict content
Requires at least: 5.8
Requires Plugins: woocommerce
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drip-content-for-woocommerce
Domain Path: /languages

Lightweight **Drip Content for WooCommerce** easily schedule and unlock posts, pages, or lessons after purchase with delays, time windows, or cohorts.

== Description ==
**Drip Content for WooCommerce** is a lightweight plugin for creators, trainers, and course owners who want to **unlock content gradually** for their customers.

Instead of complex LMS systems, this plugin gives you **just the essentials**:

- 🎯 Restrict pages, posts, or custom content by purchase.
- ⏱ Release content step by step with **drip (days after purchase)**.
- 📅 Use **time-limited windows** (open/close dates).
- 👥 Start content for all users on a **cohort date** (e.g. course launch).
- 🧩 Simple **shortcodes**: `[dripco_if_purchased]`, `[dripco_if_not_purchased]`, `[dripco_open]`, `[dripco_close]`, and more.

Perfect for:
- Online courses (drip lessons week by week).
- Memberships and communities.
- Group programs, challenges, or events.

✨ Unlike heavy LMS or membership plugins that slow down your site, Drip Content for WooCommerce is built to stay **fast, minimal and focused**.
No unnecessary bloat – just clean WooCommerce integration, so your website remains **smooth and responsive** even with many users.

👉 Documentation, examples and use cases:
[https://tools.petr-zeman.cz/en/drip-content-for-woocommerce/](https://tools.petr-zeman.cz/en/drip-content-for-woocommerce)

Works with shortcodes:
- `[dripco_if_purchased]…[/dripco_if_purchased]`,
- `[dripco_if_not_purchased]…[/dripco_if_not_purchased]`,
- `[dripco_open]` + `[dripco_close]` for rich layouts.

<!-- @build FREE-ONLY START -->
### Free version features
- Unlock content linked to a WooCommerce product purchase.
- Delay (drip) up to 7 days from purchase.
- 1 product per rule, with up to 3 drip slots per product.
- Simple before/after messages for locked content.
Upgrade to PRO version for unlimited usage, cohorts, precise anchors, diagnostics and no internal caps.
<!-- @build FREE-ONLY END -->

**Pro adds:** cohorts (even without product), precise time anchors (paid/completed/created), diagnostics, and no internal caps.
<!-- -->

== Installation ==
1. Upload the plugin files to `/wp-content/plugins/drip-content-for-woocommerce/`
2. Activate the plugin in WordPress → Plugins menu.
3. Use the provided shortcodes in your content.

<!-- -->

== Quick Start ==
1. Make sure WooCommerce is active.
2. Create or edit a product that grants access to your content.
3. Find your product ID (in the WooCommerce product list or from the URL when editing the product).
4. Add a page or post with this shortcode:

 [dripco_if_purchased
 product_id="123"
 drip_days="7"
 message="You need to purchase this product to access the content."
 message_before="This lesson will open on {opens_at} (in {opens_in})."
 message_after="The access period for this lesson has ended."
 message_login="Please log in to see your purchased content."]
 <p><strong>Welcome to Lesson 1:</strong> This content becomes available 7 days after purchase.</p>
 [/dripco_if_purchased]

 **How it works:**
 - `message` — shown when access cannot be established (no qualifying order, or strict condition failed).
 - `message_before` — shown *before* the drip window opens (supports tokens `{opens_at}` and `{opens_in}`).
 - `message_after` — shown *after* the drip window closes (if time-limited).
 - `message_login` — shown to non-logged-in users (takes priority over `message`).

5. Save the page and view it as a user who bought the product to see the drip delay and messages in action.

== Usage ==
- Use `[dripco_if_purchased product_id="123" drip_days="7"]…[/dripco_if_purchased]`.
Use markers `[dripco_open ...]` … `[dripco_close]` to span complex layouts.
- Tokens: `{opens_at}`, `{opens_in}`.

== Frequently Asked Questions ==
= Can I use it without WooCommerce? =
The free version requires WooCommerce, because access rules are based on product purchases.

The Pro version can also drip or schedule content **without any product or even user login** – perfect for free challenges, open cohorts or marketing funnels.

= Does it work with custom post types? =
Yes. You can use it with posts, pages, or any custom post type where shortcodes are supported.

For page builders (e.g. Divi, Elementor), where paired shortcodes may not always render correctly, the plugin provides **block-style shortcodes**:
`[dripco_open]` … `[dripco_close]`.

= Does the Free version have limits? =
Yes:
- 1 product per rule
- Up to 3 drip slots per product
- Max. 7-day drip delay
The PRO version removes these limits and adds expiration windows, cohort launches, and advanced diagnostics.

= Is there a Pro version? =
Yes. The Pro version adds advanced rules and more flexibility.
More info: [https://tools.petr-zeman.cz/en/drip-content-for-woocommerce](https://tools.petr-zeman.cz/en/drip-content-for-woocommerce)

= Is the plugin compatible with caching plugins? =
Yes. Most caching plugins (LiteSpeed, WP Rocket, WP Super Cache) work fine.
If you use aggressive caching, test your setup carefully.

= Can I translate the plugin? =
Yes. The plugin is translation-ready and works with multilingual plugins like Polylang or TranslatePress.

<!-- -->

= Do you provide support for the Free version? =
No. Support is provided only for active PRO licenses.
Free version users can use the documentation and examples included in the plugin.

<!-- -->

<!-- @build FREE-ONLY START -->
== Screenshots ==
1. Example of drip content rule inside DIVI - START block.
2. Example of drip content rule inside DIVI - END block.
3. Example of Locked vs unlocked content (frontend).
<!-- @build FREE-ONLY END -->

== Changelog ==
= 1.0.0 =
* Initial release.