=== WebEffortless Membership Manager ===
Contributors:      webeffortless
Tested up to:      7.1
Requires at least: 6.4
Requires PHP:      7.4
WC tested up to:   10.7.0
WC requires at least: 8.0
Stable tag:        1.0.0
License:           GPLv2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Donate link:       https://webeffortless.com/
Tags:              membership, woocommerce, content restriction, drip content, member discount

Industry-level WooCommerce Membership plugin — membership plans, content restriction, drip content, member discounts, and analytics.

== Description ==

**WebEffortless Membership Manager** is a **lightweight, enterprise-grade, and performance-optimized membership solution** for WordPress and WooCommerce. Built with clean architecture and dedicated database tables, it enables you to launch recurring memberships, protect premium content, release drip courses, and offer member-only product discounts without slowing down your store.

Whether you run a digital course, a VIP customer club, a paid newsletter, or a wholesale store, WebEffortless Membership Manager provides all the tools you need in a fast, modern interface.

---

### Key Highlights & Features

#### 1. Flexible Membership Plans & Access Methods
* **Product Purchase Linkage:** Automatically grant membership when customers purchase specific simple, variable, or subscription products.
* **Free Registration Tiers:** Auto-grant plans when new users register an account.
* **Logged-In User Access:** Grant membership perks to all registered and logged-in users on your site automatically.
* **Manual / Invite-Only Assignment:** Create exclusive, invite-only VIP tiers managed directly by site administrators.
* **Customizable Duration:** Offer lifetime/unlimited access or configure duration by days, months, or years.
* **Plan Priority System:** Set hierarchical priority levels so higher-tier plans take precedence when rules overlap.

#### 2. Granular Content Restriction
* **Post Types Protection:** Restrict access to posts, pages, and any public custom post types (Courses, Lessons, Podcasts, Portfolios, etc.).
* **Taxonomy & Category Protection:** Restrict entire categories, tags, or custom taxonomies with a single rule.
* **Single Post & Product Level:** Protect specific articles or WooCommerce products.
* **Flexible Restriction Modes:**
  * **Teaser / Excerpt:** Show a content teaser with a customizable member restriction box.
  * **Stealth 404:** Completely hide restricted content from non-members with a standard 404 response.
  * **Redirect:** Instantly redirect unauthorized visitors to a sales page, pricing table, or login URL.
  * **Custom Message Replacement:** Replace the content area with a custom HTML restriction message.
* **Editor Integration:** Configure restriction rules, required plans, drip delays, and custom notices directly from the WordPress post editor sidebar.
* **Visual Lock Badges:** Optional lock icon display on restricted content titles across archives and menus.

#### 3. Intelligent Content Dripping Engine
* **Automated Schedule Unlocks:** Release restricted lessons, chapters, or files gradually over time based on when the customer joined (e.g. unlock Week 2 content after 7 days).
* **Flexible Time Units:** Set drip delay intervals in days, weeks, months, or years.
* **Member Timeline View:** Customers can view their upcoming content drip schedule directly inside their account dashboard.

#### 4. Member-Exclusive Product Discounts
* **Custom Discount Rules:** Offer special pricing on selected WooCommerce products or entire product categories for active members.
* **Discount Types:** Configure percentage discounts (e.g. 15% off) or fixed amount discounts (e.g. $10 off).
* **Intelligent Discount Stacking:** Choose how multiple discounts are handled (highest discount only, lowest discount only, stack all, or first matching).
* **Sale Product Protection:** Option to exclude products already on sale from additional member discounts.
* **Live Price Display:** Automatically displays member savings on product and shop pages for logged-in members.

#### 5. Member Account Dashboard (WooCommerce My Account)
* **Native Account Portal:** Adds a dedicated "Memberships" tab inside WooCommerce My Account.
* **Membership Details Page:** View active plan details, expiration dates, linked orders, and content unlock schedules.
* **Self-Service Controls:** Allow members to pause, resume, or cancel active memberships directly from their account (configurable via admin settings).
* **Pricing Grid Shortcode:** Embed responsive pricing and membership plan cards anywhere with `[wemem_plans]`.

#### 6. Lifecycle Email Notifications
* **7 Automated Email Triggers:**
  * Welcome Email (first activation)
  * Membership Activated / Re-activated
  * Expiry Reminder (sent N days before expiration)
  * Membership Expired
  * Membership Cancelled
  * Membership Paused
  * Membership Renewed
* **Dynamic Template Tags:** Personalize subject lines and email bodies with `{user_name}`, `{plan_name}`, `{start_date}`, `{end_date}`, `{days_until_expiry}`, `{dashboard_url}`, and `{site_name}`.
* **Branding & Testing:** Customize email accent color, sender name, sender address, and send instant test emails from the admin settings.

#### 7. Real-Time Analytics & Reporting
* **Interactive Chart Visualizations:** Real-time net growth charts and active vs. cancelled membership distribution doughnut charts powered by local Chart.js.
* **Preset & Custom Date Ranges:** Filter reports by Today, Last 7 Days, Last 30 Days, This Month, This Year, or Custom date intervals.
* **Comparative Analytics:** Compare metrics against previous periods to monitor retention and churn trends.
* **One-Click CSV Export:** Export complete membership reports to CSV for bookkeeping, CRM synchronization, and financial reporting.

#### 8. High Performance & Developer Friendly
* **Custom Database Schema:** Optimized dedicated tables (`wemem_plans`, `wemem_access_rules`, `wemem_member_activity_log`) ensure zero postmeta query slowdowns.
* **WooCommerce HPOS Compatible:** Built from the ground up for WooCommerce High-Performance Order Storage.
* **WooCommerce Block Checkout Ready:** Fully compatible with modern Block checkout and cart layouts.
* **REST API Endpoints:** Custom REST API routes for headless setups, mobile apps, and third-party integrations.
* **GDPR & Privacy Compliant:** Zero external CDNs or remote font calls; all assets and libraries are hosted locally on your server.
* **100% Translation Ready:** Includes complete `.pot` localization template and `en_US` translation files.

== Installation ==

### Automatic Installation (Recommended)

1. Log in to your WordPress admin panel.
2. Navigate to **Plugins > Add New**.
3. Search for **WebEffortless Membership Manager**.
4. Click **Install Now** and then **Activate**.

### Manual Installation

1. Download the plugin `.zip` file from WordPress.org.
2. Upload the `webeffortless-membership-manager` folder to your `/wp-content/plugins/` directory.
3. Activate **WebEffortless Membership Manager** through the **Plugins** menu in WordPress admin.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WebEffortless Membership Manager is built as a WooCommerce extension and requires WooCommerce 8.0 or higher to be active.

= Can I restrict custom post types and custom taxonomies? =

Yes. WebEffortless Membership Manager works with standard WordPress posts and pages, as well as any public custom post types (courses, portfolios, events) and custom taxonomies (course categories, project types).

= How does content dripping work? =

Content dripping allows you to release restricted content on a schedule relative to the member's registration date. For example, you can set a drip rule of 14 days, meaning the content remains locked until the user has held an active membership for at least two weeks.

= Can I offer member-exclusive discounts on products? =

Yes. You can create discount rules that apply percentage or fixed price reductions to specific products or entire product categories for members of selected plans.

= Are customers able to cancel or pause their memberships? =

Yes. Store owners can enable customer self-service controls in the settings, allowing members to pause or cancel their active memberships directly from the WooCommerce My Account area.

= Is WebEffortless Membership Manager compatible with WooCommerce HPOS? =

Yes. WebEffortless Membership Manager is fully compatible with WooCommerce High-Performance Order Storage (HPOS) and standard post tables.

= Does the plugin make any external requests or track data? =

No. WebEffortless Membership Manager respects user privacy and complies with GDPR. All scripts, styles, and chart libraries are bundled locally, and no data is sent to external servers.

= Can I translate the plugin into other languages? =

Yes. WebEffortless Membership Manager is fully internationalized and includes a standard `webeffortless-membership-manager.pot` translation template in the `/languages` directory.

== Screenshots ==

1. **Admin Dashboard:** Overview cards with real-time membership metrics, net growth graphs, and recent member activity feed.
2. **Membership Plans Manager:** Modal-based plan builder with access methods, duration, pricing product linkages, and priority levels.
3. **Granular Access Rules Wizard:** Rule console for configuring post types, single posts, taxonomy categories, and drip delays.
4. **Member-Exclusive Discounts:** Configured product discount rules rendering custom savings across store products.
5. **Interactive Analytics & Reporting:** Net growth charts, cancellation trends, comparison period overlays, and CSV export.
6. **Customer Account Portal:** Responsive member-facing dashboard integrated into WooCommerce My Account showing active plans, drip schedules, and invoices.

== Changelog ==

= 1.0.0 =
* Initial official release.
* Added unlimited membership plans with product purchase, free registration, logged-in user, and manual access methods.
* Added granular content restriction for posts, pages, custom post types, and taxonomy categories.
* Added content dripping engine with day, week, month, and year release intervals.
* Added member-exclusive product discounts with percentage and fixed amount support and stacking logic.
* Added customer membership portal inside WooCommerce My Account.
* Added real-time Chart.js analytics reports with period comparisons and CSV export.
* Added 7 automated lifecycle email notifications with dynamic placeholder tags.
* Added standalone `[wemem_plans]` pricing table shortcode.
* Declared full compatibility with WooCommerce HPOS and Block Checkout.
* Bundled complete `.pot` localization template and `en_US` translation files.

== Upgrade Notice ==

= 1.0.0 =
Initial release of WebEffortless Membership Manager.

