Appearance
LearnDash Integration
Connecting FluentCart with LearnDash allows you to sell access to your online courses and automatically manage student enrollment. When an event happens in your FluentCart store (like a successful purchase), this integration can instantly enroll customers into the correct LearnDash courses or groups, providing a smooth and automated experience.
This guide will show you how to activate the integration and configure enrollment rules using Integration Feeds.
Activating the LearnDash Integration
First, ensure you have both FluentCart and LearnDash installed and active on your WordPress site. The basic connection is automatic.
Configuring Enrollment Rules (Integration Feeds)
The core of the integration lies in creating Integration Feeds. Think of a "feed" as a specific instruction or rule that tells FluentCart: "When this happens, enroll the customer in that LearnDash course or group."
You can create these feeds in two places:
- Globally: These feeds apply based on events happening anywhere in your store. Useful for broad actions, like adding every new subscriber to a general student group.
- Product Specific: These feeds apply only for a specific product. This is the most common and recommended method for selling individual courses.
How to Create an Enrollment Rule (Feed)
You have two ways to create these enrollment rules, depending on whether you want the rule to apply broadly or only to a specific product. Both methods use the same configuration settings.
Method 1: Creating a Global Feed
Use this method if you want a rule to apply based on events happening anywhere in your store (e.g., enrolling every new subscriber into a general student group).
- From your WordPress dashboard, go to FluentCart Pro > Integrations.
- Find the Global Integrations Feeds section at the top of the page.
- Click the Add Integration button located in the top-right corner of this section.
- A dropdown menu will appear. Choose LearnDash from the list.
- You will now be taken to the feed configuration screen where you can define the specifics of your global rule (explained in the below section).

Method 2: Creating a Product-Specific Feed (Recommended for Selling Courses)
Use this method to link a specific FluentCart product directly to the LearnDash course(s) it grants access to. This is the most common way to sell individual courses.
- From your WordPress dashboard, go to FluentCart Pro > Products.
- Find the product you want to link to LearnDash (e.g., your "Learn Python Course") and click on its name or the "Edit" link to open the product editor.
- Inside the product editor, look for the row of tabs near the top (Edit Product, Upgrade Paths, etc.) and click on Integrations.
- Within the product's Integrations area, click the Add Integration button.
- A dropdown menu will appear. Choose LearnDash from the list.
- You will now be taken to the feed configuration screen, specifically for this product, where you can define the enrollment rule (explained in the next section).

Configuring the Feed Settings
Once you add a feed (either globally or per-product), you will see the configuration screen.
Here’s what each setting does:
- Feed Title: Give your rule a clear name that you'll easily recognize later (e.g., "Enroll in Learn Python Course" or "Add Subscribers to Student Group").
- Add to Courses: Use the dropdown menu to select the LearnDash courses you want to enroll the user in when this rule runs.
- Add to LearnDash Groups: Similarly, select any LearnDash group(s) you want to add the user to.
- Remove from selected Courses/Groups on Refund or Subscription Access Expiration: This is a vital setting for managing access automatically. Check this box if you want FluentCart to automatically remove the user from the selected courses/groups if their related order is refunded, or if their subscription expires or is canceled.
- Set Course Expiration from Subscription / License Expiry: Enable this option to automatically expire the customer's LearnDash course access on the same date as their subscription expiration or license expiration. When the underlying commercial relationship ends — the subscription lapses or the license reaches its expiry date — LearnDash receives the same expiry date for the enrolled course(s), so the customer loses access at exactly the right moment. This keeps course access aligned with billing instead of letting the two systems drift apart.
- Use this for membership-style course bundles where access is tied to an ongoing subscription.
- Use this for time-limited licensed courses where each license carries its own expiry (e.g., a one-year course license).
- If both a subscription and a license are connected to the order, FluentCart will use whichever expiry is earliest, so the customer never keeps access past either deadline.
- Event Trigger: Select the FluentCart action from the dropdown that runs this rule. For course access after purchase, you can use
Order Paid (Payment / Subscription). Other order and subscription triggers are available for different needs. - Run on Selected Variations Only (Available for Product-Specific Feeds Only): If the product has different variations (e.g., "Basic Access," "Premium Access"), you can use this dropdown to make the rule run only when a specific variation is purchased. Leave empty to apply to all variations.
- Enable this Integration: Make sure this toggle at the top right is switched ON (blue) to make the rule active.
Click Create LearnDash Feed (or similar button) to save your rule.

Use Case Example: Selling a Course Bundle
Let's illustrate how product-specific feeds make selling multiple courses easy. Imagine you offer two LearnDash courses, sold via three FluentCart products:
- FluentCart Product 1: "Beginner Photography Course"
- FluentCart Product 2: "Advanced Editing Masterclass"
- FluentCart Product 3: "Photography Bundle" (includes access to both courses)
Here’s how you would set up the feeds:
- Inside "Beginner Photography Course" Product: Add a LearnDash feed. In "Add to Courses," select only the "Beginner Photography" LearnDash course. Set Trigger to Order Paid.
- Inside "Photography Bundle" Product: Add a LearnDash feed. In "Add to Courses," select both the "Beginner Photography" AND the "Advanced Editing" LearnDash courses. Set Trigger to Order Paid.
With these simple, product-specific rules, FluentCart automatically handles the correct enrollment for every purchase, ensuring your students get exactly what they paid for instantly.
Use Case Example: Time-Limited Membership Course
If you sell course access as a yearly subscription or a time-limited license, you can use Set Course Expiration from Subscription / License Expiry to keep LearnDash and FluentCart perfectly in sync:
- Create a subscription product (e.g., "Annual Photography Membership") in FluentCart.
- On the product, add a LearnDash feed and select the courses included in the membership.
- Enable Set Course Expiration from Subscription / License Expiry in the feed.
- Set Trigger to Order Paid (Payment / Subscription).
When a customer subscribes, LearnDash gives them access until the subscription's next expiry date. If they renew, the course expiry rolls forward automatically. If they cancel or fail to renew, course access ends on the same day as their subscription — no manual cleanup required, and no risk of a customer losing access early or keeping it for free.
