Course Access Expiration is Here

Updated on February 1, 2022

WooCommerce Paid Courses 2.6.0 is hot off the press!

We’ve added the ability to set a time limit on courses using the new Access Period setting*. If you need to offer the type of courses that last only for a period of time, such as compliance training or continuing education, this feature is for you!

To get it set up, simply create a new course, or open an existing one, and use the Access Period panel in the sidebar:

New learners who enroll in the course will be notified via email when their access is set to expire soon, and will also see notices on the course frontend. They will automatically lose access when the date passes.

On the admin side, you’ll be able to see the expiry dates for all of your students right from the Learner Management table:

*The Access Period setting is only available in the block editor, not the classic editor.

Please see the full release change log for Sensei LMS.

To update, please head on over to Dashboard → Updates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

For Developers

New Filters – Sensei

  • sensei_user_courses_query – Filters the query which fetches the user courses. So it’s possible to introduce tabs with new content.
  • sensei_user_courses_filter_options – Filters the the user courses filter options (tabs).
  • sensei_render_view_results_block – Filter to render or not the view results block.
  • sensei_display_course_enrollment_actions – Filter to display or not the course enrolment actions.
  • sensei_admin_enrol_user – Notify when a user is manually enrolled to the course.
  • sensei_learners_learner_updated – Filter when a learner row is updated in learner management.

New Filters – WooCommerce Paid Courses

  • sensei_wc_paid_courses_expiration_remaining_days_notifications – Filters the remaining days to notify the user.
  • sensei_wc_paid_courses_expiration_notification_email_content – Filters the expiration email content, so the user can customize the text for the emails, or create new content for different remaining days notifications (in case they use the previous filter).
  • sensei_wc_paid_courses_expiration_notification_job_recurring_schedule – FIlters the schedule for the notifications, in case the user wants to send it at a different moment.
  • sensei_wc_paid_courses_expiration_before_email_content – Action to add any content before the expiration email.
  • sensei_wc_paid_courses_expiration_after_email_content – Action to add any content after the expiration email.
  • sensei_wc_paid_courses_expiration_countdown_notice_threshold – It allows users to configure when the notices will start to appear.
  • sensei_wc_paid_courses_expiration_job_recurring_schedule – Filter the course expiration job recurring schedule. The default value is "0 0 * * *" (daily at midnight). It doesn’t have additional arguments.
  • sensei_wc_paid_courses_learner_access_expiration_date – Filter the learner access expiration date. The filter arguments are:
    • {DateTimeImmutable} $expiration_date – Expiration date.
    • {DateTimeImmutable} $start_date – Start date.
    • {int} $user_id – User ID.
    • {int} $course_id– Course ID.

Deprecated Code

  • Sensei_WC_Paid_Courses\Courses::fix_product_metadata_type – No replacement.

Keep the conversation going…

Join the community
Sensei P2

Follow us on Twitter
@senseilms

Stay up to date
Join our mailing List

Choose Your WordPress LMS

We know you’re a genius. Now let us help you share your brilliance with the world.

Host Anywhere

Download our free plugin to use on any WordPress site, and upgrade to Sensei Pro at any time.

  • Open-source and extendable
  • Works with any WordPress theme
  • Integrates with 100s of WordPress plugins
  • Choose any web host

Host With Us

Get blazing-fast hosting, Sensei Pro, backups, and security all in one discounted package.

  • Sensei Pro courses, and quizzes
  • WooCommerce payments
  • Jetpack security and marketing
  • WordPress.com scalable hosting
%d bloggers like this: