Course Access Extender for LearnDash

By Saqib K.

0+ active installationsVersion 1.1.6

Let students buy extra days of LearnDash course access through WooCommerce, and manage every student's expiry date from one dashboard.

Description

Course Access Extender for LearnDash lets your students buy more time on a LearnDash course through WooCommerce. It also gives you a simple dashboard to see who is enrolled, when their access ends, and what they have bought.

Disclaimer: This is an independent plugin. It is not affiliated with, endorsed by, or sponsored by LearnDash or its parent company. “LearnDash” is a trademark of its owner. This plugin is simply built to work alongside the LearnDash LMS plugin.

The problem it solves

Out of the box, if a student buys a course extension while their access is still active, LearnDash does not add the new days to the time they have left. Their access is either reset or the purchase is ignored.

This plugin fixes that. When the order comes in, it takes the student’s current expiry date and adds the extension days on top of it, so nobody loses the days they already paid for.

Example: A student has 30 days left and buys a 90-day extension. They now have 120 days of access.

If the student’s access has already run out, they simply get a fresh 90 days starting from the day they buy.

Students dashboard

The Students tab under WooCommerce > Course Access Extender shows every enrolled student in one table. You can:

  • See each student’s course, enrollment date, expiry date, days left, and whether their access is Active or Expired.
  • Filter the list by course, status, how soon access expires, or enrollment date, and search by name or email.
  • Sort by student name or expiry date.
  • Change any student’s expiry date right from the table using a date picker.
  • Open a student’s purchase history in a popup to see all their course orders, including dates, products, quantities, totals, and order status.

Activity log

Every change is recorded: new access, extensions, expiry dates changed by an admin, and enrollment dates edited on a user’s profile. You can filter the log by course, action type, keyword, or date range.

Requirements

  • WordPress 6.0 or newer
  • WooCommerce 7.0 or newer
  • LearnDash LMS 4.0 or newer
  • PHP 7.4 or newer

Installation

  1. Upload the course-access-extender-for-learndash folder to /wp-content/plugins/.
  2. Activate the plugin from the Plugins screen.
  3. Go to WooCommerce > Course Access Extender > Settings and set how many days an extension should add by default.
  4. Edit your extension product in WooCommerce, open the Course Extension tab, turn it on, and pick the LearnDash course it should extend. You can also set a custom number of days for that product.

FAQ

Is this plugin affiliated with LearnDash?

No. It is an independent plugin made to work with LearnDash LMS. It is not affiliated with, endorsed by, or sponsored by LearnDash or its parent company.

What happens if a student buys an extension after their access has expired?

They get a fresh block of access starting on the day of purchase. For example, a 90-day extension bought today gives them 90 days from today.

Can I sell extensions of different lengths?

Yes. Each extension product has its own Access Days setting, so you can sell 30-day, 60-day, or 90-day products side by side. If a product has no days set, the default from the Settings tab is used.

What happens to my data if I deactivate the plugin?

Nothing is deleted. Your settings and activity log stay in place when you deactivate or update the plugin. If you want everything removed when you delete the plugin, turn on “Delete Data on Uninstall” in the Settings tab first.

Screenshots

Changelog

1.1.6

  • Fixed: Saving the Settings tab did not save your values. It also reset every setting to 0, which turned off logging and could make an extension add 0 days. Settings now save correctly.
  • Fixed: Sites already affected get their settings restored automatically on update, and a notice asks you to review them.
  • Fixed: A paid extension can no longer add 0 days. If no days are set anywhere, 90 days are used.
  • Fixed: The Course Extension fields on the product screen now show and hide with the checkbox.
  • Fixed: Products and student date changes saved before version 1.1.2 work again, and old orders are never extended twice.
  • Fixed: Days left, Active/Expired status, and dates on the Students tab now follow your site’s timezone.
  • Fixed: Setting an expiry date works on sites that use a manual UTC offset, and bad dates show an error instead of failing.
  • Fixed: Activity Log date filters now match the dates shown in the table.
  • Fixed: Sorting or paging the Students table no longer drops the “Expiring within” and enrollment date filters.
  • Fixed: Order links work when WooCommerce High-Performance Order Storage is turned on. The plugin now declares HPOS compatibility.
  • Improved: Purchase history shows each product’s own total instead of the whole order total, and includes on-hold orders.
  • Improved: The Settings tab now confirms when your changes are saved.
  • Improved: Updates now run a safe, one-time upgrade step. It only copies or repairs data and never deletes anything.

1.1.5

  • Changed: The admin tabs are now ordered Students, Activity Log, Settings. The Students tab opens by default.
  • Changed: The Settings link on the Plugins screen now opens the Settings tab directly.
  • Updated: Rewrote the plugin description and FAQ in plainer language.

1.1.4

  • Fixed: Purchasing a Course Extension after access had already expired granted double the days (e.g. 180 instead of 90) when the product was also linked to the course in LearnDash’s WooCommerce settings. The student’s pre-purchase expiry is now snapshotted before LearnDash re-enrolls them.
  • Fixed: Checkout extensions now use a true UTC timestamp for “now”, so fresh grants are no longer shifted by the site’s timezone offset.

1.1.2

  • Renamed: Plugin renamed to “Course Access Extender for LearnDash” for WordPress.org trademark compliance.
  • Updated: All internal prefixes changed from ldce_ to cael_ throughout.
  • Updated: Text domain updated to course-access-extender-for-learndash.
  • Fixed: All Plugin Check warnings resolved for WordPress.org submission.
  • Fixed: Logger queries use esc_sql() with documented phpcs suppressions.
  • Fixed: uninstall.php global variables correctly prefixed.
  • Fixed: load_plugin_textdomain() removed (auto-loaded since WP 4.6).
  • Added: index.php silence files in all subdirectories.
  • Updated: Tested up to WordPress 7.1.

1.1.0

  • Added Students tab with enrollment list, expiry management, and purchase history modal.
  • Added AJAX expiry adjustment with admin log entry.
  • Added per-product access days field (30, 40, 90-day products etc.).
  • Added Activity Log filters: course, action type, keyword search, date range.
  • Added Students tab filters: expiry-within, enrollment date range.
  • Added “Enrolled Since” column to Students tab.
  • Added data-preservation default on uninstall (opt-in to delete via Settings).

1.0.0

  • Initial release.