Posted on

WooCommerce Paid Courses 1.1 Beta

As promised, WooCommerce Paid Courses 1.1 is now available for beta testing!

We’ve been busy working on adding the ability to attach multiple products to the same course in the WooCommerce Paid Courses extension. This means that you will soon be able to sell your courses as a simple product, as a subscription and as a membership if you so desire:

Product cards on the OceanWP theme

A Note for Those Using Memberships

As part of this work, we’ve removed the membership notice from the course archive, course category and single course pages for courses that are part of a membership.

Instead, the course excerpt will now be displayed on the course archive and course category pages, while the course content and lessons will be displayed on the single course page, regardless of whether or not the course is part of a membership. Making this content visible is an opportunity to promote the course and entice people to enrol.

What Else is in this Release?

  • The Unpurchased Courses shortcode has been updated to include course memberships.
  • Student progress is no longer deleted when a subscription is cancelled. This means a student can pick up where they left off should they later resubscribe.

Deprecated Methods

  • Sensei_WC::assign_user_to_unassigned_purchased_courses
  • Sensei_WC::start_purchased_courses_for_user

Release Testing

Beta testers will receive the WooCommerce Paid Courses beta directly to their inbox. If you find a bug, please submit an issue on Github or leave a comment here. Our tentative release date for WooCommerce Paid Courses 1.1 is September 3rd.

As this is a beta release, please test it on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.

Thank you to all our testers and contributors!

Posted on

Sensei LMS 2.2 Beta

Sensei LMS 2.2 is now available for beta testing!

What’s Included in this Release?

Here are the highlights of the Sensei LMS 2.2 release:

  • We cleaned up unused, abandoned modules when the teacher is changed for a course that contains modules.
  • The course author name on the course archive page now appears beside the title. We’ve also cleaned up the styling for other course meta such as the number of lessons in the course and the course categories.
  • The Order Lessons page now displays lessons that are published, draft, private, or that are scheduled to be published at a future date.
  • We fixed an alignment issue on the single course page when a lesson has a featured image.
  • We removed the ability to add a course from the lesson page due to low usage.
  • We fixed an issue with WooCommerce notices not being displayed on some themes (like Divi).

See what else is in this release.

Hooks

New Filters

  • sensei_modules_title – Modify the Modules title that appears on the single course page.
  • sensei_course_show_lessons – Set the visibility of lessons on the single course page.
  • sensei_course_meta_default_save – Whether or not to run the default save functionality for the course meta.

New Action

  • sensei_course_meta_before_save – Runs before saving the meta value.

Removed/Deprecated Hooks

  • sensei_lesson_course_create_form_top (removed)
  • sensei_lesson_course_create_form_bottom (removed)
  • sensei_lesson_course_created (deprecated)

Deprecated Methods

  • Sensei_Lesson::lesson_add_course has been deprecated with no replacement

Release Testing

You can download the Sensei LMS 2.2 beta here. If you find a bug, please submit an issue on Github or leave a comment here. Our tentative release date for Sensei LMS 2.2 is September 3rd.

In the next few days we will also be releasing the WooCommerce Paid Courses 1.1 beta, which adds support for attaching multiple products to a course. If you would like to sign up to be a beta tester for it and have a valid license, please fill out the beta tester signup form. Beta testers will receive the WooCommerce Paid Courses beta directly to their inbox. The signup form will be closed to new signups once the beta is released.

As this is a beta release, please test it on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.

Thank you to all our testers and contributors!

Posted on

Sensei LMS & Sensei with WooCommerce Paid Courses 2.1 Betas

The Sensei LMS and Sensei with WooCommerce Paid Courses 2.1 betas are ready for testing.

Sensei LMS 2.1

Here are the highlights of the Sensei LMS 2.1 release:

  • We added an Edit Course button to the lesson page to enable easier navigation to the course page (currently only available in the classic editor).
  • We made the queries on the Analysis page more performant. This should help speed things up for sites with a significant number of learners.
  • We fixed an issue with teachers not being able to save course settings in the block editor.
  • We fixed a long-standing issue with the module status overlapping the module name on single course page for long module names.
  • We’ve enabled the ability to add more HTML elements to Sensei notices.
  • We added some event logging to the WordPress dashboard. More details can be found here.

See what else is in this release.

Template File Change

  • single-course/modules.php – Moved the location of module status to inside the header element

New Hook

  • sensei_complete_lesson_redirect_url – Disable the redirect that occurs after completing a lesson

Sensei with WooCommerce Paid Courses 2.1

In addition to the changes from Sensei LMS, there are a couple of additional items in the Sensei with WooCommerce Paid Courses 2.1 release:

  • We fixed an issue with the course purchase confirmation not being displayed on the correct page. The confirmation notice will now show on the Order Received page after a course is purchased.
  • We replaced a call to the deprecated WooCommerce Memberships get_content_restricted_message function.

Release Testing

You can download the Sensei LMS 2.1 beta here. Beta testers will receive the Sensei with WooCommerce Paid Courses 2.1 beta directly to their inbox. Our tentative release date for both Sensei LMS and Sensei with WooCommerce Paid Courses 2.1 is June 17th.

If you find a bug in the beta, please submit an issue on Github or leave a comment here.

As this is a beta release, please test it on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.

Thank you to all our testers and contributors!

Posted on

Sensei LMS 2.0.1 Beta 1

The next beta, Sensei LMS 2.0.1 Beta 1, is ready for testing. It contains changes that rename the plugin from Sensei to Sensei LMS.

We recognize that the naming of this beta may be confusing. Given that Sensei 2.0 was made available prematurely on WordPress.org for a short period of time, we’ve had to rename the plugin from Sensei to Sensei LMS in order to prevent the same situation from happening again.

We’ve also bumped the version to 2.0.1, since technically Sensei 2.0.0 was briefly (albeit erroneously) released.

Template File Changes

  • All templates – Changed text domain from sensei to sensei-lms.
  • templates/emails/footer.php – Updated footer text.

Deprecated Hooks

  • manage_sensei_page_sensei_learners_sortable_columns has been deprecated in favour of manage_sensei-lms_page_sensei_learners_sortable_columns
  • manage_sensei_page_sensei_grading_sortable_columns has been deprecated in favour of manage_sensei-lms_page_sensei_grading_sortable_columns
  • manage_sensei_page_sensei_analysis_sortable_columns has been deprecated in favour of manage_sensei-lms_page_sensei_analysis_sortable_columns

Other Things to be Aware of

There are some additional things you should be aware of, particularly for developers:

  • The main plugin file has been renamed from sensei.php to sensei-lms.php.
  • Sensei LMS is now installed in the wp-content/plugins/sensei-lms directory.
  • The text domain has been changed to sensei-lms throughout the codebase.
  • The screen IDs for all subpages under the Sensei LMS menu have changed. If you are referencing screen IDs in any custom Sensei code, they will need to be updated.

You can download the beta here. Should you find any issues, please report them here in the comments or on Github. Thank you!

As this is a beta release, please test on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.

Posted on

Sensei 2.0 Beta 3

We’ve just released another beta for the open source version of Sensei that will be listed on WordPress.org.

The most noteworthy change since the last beta is a fix we made to flush the permalink/rewrite rules when Sensei is activated. Now when you deactivate and reactivate Sensei, your existing Sensei pages will still be viewable without requiring you to re-save your lessons or click the Install Sensei Pages button.

Here’s what else is new since the last beta:

Download the beta or view the full Sensei 2.0 milestone.

We will be applying these changes to Sensei with WooCommerce Paid Courses, and sending out Beta 3 to our testers next week.

As always, since this is a beta release, please test on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.

Posted on

Beta Releases for Media Attachments, Share Your Grade & Course Participants

The beta releases for the remaining Sensei extensions are now available for testing.

These betas are a continuation of the work being done for Sensei 2.0. In particular, they add compatibility with the version of Sensei that will soon be available on WordPress.org. The existing extensions are already compatible with the soon-to-be-released Sensei with WooCommerce Paid Courses plugin.

Please note that Sensei Media Attachments 2.0, Sensei Share Your Grade 2.0 and Sensei Course Participants 2.0 all require a minimum Sensei version of 1.11.0 and a minimum PHP version of 5.6.

Sensei Media Attachments

Here’s what you’ll find in the Sensei Media Attachments release:

New Hooks

  • sensei_media_attachments_show_media_links – Whether or not to display the media attachments.
  • sensei_media_attachments_get_attachment_title – Customize the title that is displayed for a particular media attachment.
  • sensei_media_attachments_media_heading – Customize the media heading.

See what else is in this release or download the beta.

Sensei Share Your Grade

Google+ for personal accounts will be shut down on April 2, 2019. Given this, we’ve removed the Google+ sharing button in Sensei Share Your Grade.

See what else is in this release or download the beta.

Sensei Course Participants

Here are the most notable improvements in Sensei Course Participants:

New Hooks

  • sensei_course_participants_exclude_completed_participants – Whether or not to include learners in the learner count and widget, who have already completed the course.
  • sensei_course_participants_profile_url – Customize the learner profile URL in the widget.

See what else is in this release or download the beta.

What should I do if I find a problem?

If you find a bug, please open a new issue for Media Attachments, Share Your Grade or Course Participants as appropriate. You are also welcome to leave a comment here.

As always, please test on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.

The extensions will remain in beta for about a week.

Posted on

Sensei Certificates and Sensei Course Progress 2.0 Betas

We’ve just released new betas for Sensei Certificates and Sensei Course Progress, two of our most popular extensions.

These betas are a continuation of the work being done for Sensei 2.0. In particular, they add compatibility with the version of Sensei that will soon be available on WordPress.org. The existing extensions are already compatible with the soon-to-be-released Sensei with WooCommerce Paid Courses plugin.

Please note that both Sensei Certificates 2.0 and Sensei Course Progress 2.0 require a minimum Sensei version of 1.11.0 and a minimum PHP version of 5.6.

Sensei Certificates

Here’s what else you’ll find in the Sensei Certificates release:

New Hook

  • sensei_certificates_run_installer – Run install-related tasks after checking that required dependencies have been met.

See what else is in this release or download the beta.

Sensei Course Progress

For Sensei Course Progress, we’ve fixed a bothersome bug that was affecting some themes like Divi and OceanWP. If your course progress widget didn’t look quite right before, it should look just fine with Sensei Course Progress 2.0.

See what else is in this release or download the beta.

If you find a bug, please submit a new issue for Certificates or for Course Progress. You are also welcome to leave a comment here.

As always, please test on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.

What about the other extensions?

We have a beta ready now for Sensei Content Drip. If you’d like to test that extension, and have an active license for it, please drop a comment here to express your interest. We’ll be releasing betas for the remaining extensions over the coming days. UPDATE: We now have betas for all of our extensions.

Posted on

Sensei 2.0 Beta is Here!

Today we’re pleased to announce that Sensei 2.0 is available for beta testing!

There are some important changes in this release:

  • We’ve split Sensei into two plugins – Sensei (free) and WooCommerce Paid Courses (paid). After upgrading Sensei, those with a valid license will have Sensei renamed to Sensei with WooCommerce Paid Courses, which is a bundle of Sensei and WooCommerce Paid Courses. You can read more about this change here.
  • The new minimum required version of PHP is 5.6.
  • The new minimum required version of WooCommerce is 3.0.
  • The Access Permissions setting now only controls lesson content, not lesson and course content.

Everything else . . .

  • We fixed a conflict between the Jetpack shortcodes module and Sensei that caused Sensei videos not to display.
  • We fixed the lesson order changing when a lesson was updated in the classic editor.
  • We fixed completed modules being displayed as “In Progress”.
  • We’ve changed the text domain from woothemes-sensei to sensei.
  • When Sensei is first activated, a pop-up appears asking you to join our mailing list. This pop-up will only appear on sites that have never had Sensei installed before.
  • We added a new Sensei extensions page available from the Sensei > Extensions menu.

There are also a variety of minor tweaks, new hooks, and fixes. We won’t go into detail here, but you can see the full list of changes if you’re interested!

Template File Changes

  • All templates – Changed text domain from woothemes-sensei to sensei
  • content-course.php – Call Sensei_Course::get_course_loop_content_class instead of WooThemes_Sensei_Course::get_course_loop_content_class
  • single-quiz/question-type-*.php – Call Sensei_Question::get_template_data instead of WooThemes_Sensei_Question::get_template_data

Deprecated Functions and Methods

Sensei_Main

  • Sensei_Main::sensei_woocommerce_email_course_details has been deprecated in favour of Sensei_WC::email_course_details
  • Sensei_Main::sensei_woocommerce_reactivate_subscription has been deprecated in favour of Sensei_WC::reactivate_subscription
  • Sensei_Main::sensei_woocommerce_subscription_ended has been deprecated in favour of Sensei_WC::end_subscription
  • Sensei_Main::sensei_woocommerce_complete_order has been deprecated in favour of Sensei_WC::complete_order
  • Sensei_Main::sensei_woocommerce_cancel_order has been deprecated in favour of Sensei_WC::cancel_order
  • Sensei_Main::sensei_activate_subscription has been deprecated in favour of Sensei_WC::activate_subscription
  • Sensei_Main::woocommerce_course_update has been deprecated in favour of Sensei_WC::course_update
  • Sensei_Main::sensei_get_woocommerce_product_object has been deprecated in favour of Sensei_WC::get_product_object
  • Sensei_Main::disable_guest_checkout has been deprecated in favour of Sensei_WC::disable_guest_checkout
  • Sensei_Main::virtual_order_payment_complete has been deprecated in favour of Sensei_WC::virtual_order_payment_complete
  • Sensei_Main::check_user_permissions has been deprecated with no replacement

Sensei_Utils

  • Sensei_Utils::sensei_is_woocommerce_present has been deprecated in favour of Sensei_WC::is_woocommerce_present
  • Sensei_Utils::sensei_is_woocommerce_activated has been deprecated in favour of Sensei_WC::is_woocommerce_active
  • Sensei_Utils::sensei_customer_bought_product has been deprecated in favour of Sensei_WC::has_customer_bought_product

Sensei_Frontend

  • Sensei_Frontend::activate_purchased_courses has been deprecated in favour of \Sensei_WC_Paid_Courses\Courses::activate_purchased_courses
  • Sensei_Frontend::activate_purchased_single_course has been deprecated in favour of \Sensei_WC_Paid_Courses\Courses::activate_purchased_single_course
  • Sensei_Frontend::sensei_woocommerce_in_cart_message has been deprecated in favour of Sensei_WC::course_in_cart_message

Sensei_Course

  • Sensei_Course::get_product_courses has been deprecated in favour of Sensei_WC_Paid_Courses\Courses::get_product_courses
  • Sensei_Course::get_product_courses_query_args has been deprecated in favour of Sensei_WC_Paid_Courses\Courses::get_product_courses_query_args

Sensei_WC_Utils

  • Sensei_WC_Utils::wc_version_less_than has been deprecated in favour of version_compare( WC()->version, $str, '<' )
  • Sensei_WC_Utils::is_product_variation has been deprecated in favour of $product->is_type( 'variation' )
  • Sensei_WC_Utils::get_order_id has been deprecated in favour of $order->get_id()
  • Sensei_WC_Utils::get_product has been deprecated in favour of wc_get_product
  • Sensei_WC_Utils::get_parent_product has been deprecated in favour of wc_get_product
  • Sensei_WC_Utils::get_formatted_variation has been deprecated in favour of wc_get_formatted_variation
  • Sensei_WC_Utils::get_product_variation_data has been deprecated in favour of \Sensei_WC_Utils::get_variation_data
  • Sensei_WC_Utils::get_product_from_item has been deprecated in favour of $item->get_product()
  • Sensei_WC_Utils::get_checkout_url has been deprecated in favour of wc_get_checkout_url

Other

  • sensei_wc_add_to_cart has been deprecated in favour of Sensei_WC::the_add_to_cart_button_html
  • sensei_check_if_product_is_in_cart has been deprecated in favour of Sensei_WC::is_product_in_cart
  • sensei_simple_course_price has been deprecated in favour of Sensei_WC_Paid_Courses\Frontend\Courses::output_course_price
  • is_woocommerce_active has been deprecated with no replacement
  • sensei_check_woocommerce_version has been deprecated with no replacement

Deprecated Shortcodes

Additionally, the following legacy shortcodes will now log deprecation warnings. A notice will also be displayed on the front-end that is only visible to users with the edit_posts capability (i.e. it won’t be visible to students or guests):

  • newcourses
  • featuredcourses
  • freecourses
  • paidcourses
  • usercourses
  • allcourses

Deprecated Hooks

  • sensei_show_delete_course_button (the Delete Course button that may appear on the My Courses page will be removed in Sensei 4.0)
  • sensei_merge_courses_with_parent_product has been deprecated in favour of sensei_wc_paid_courses_merge_courses_with_parent_product
  • sensei_wc_subscriptions_get_subscription_types has been deprecated in favour of sensei_wc_paid_courses_subscriptions_get_subscription_types
  • sensei_wc_memberships_auto_start_course has been deprecated in favour of sensei_wc_paid_courses_memberships_auto_start_course
  • sensei_wc_memberships_auto_start_courses has been deprecated in favour of sensei_wc_paid_courses_memberships_auto_start_courses
  • sensei_wc_single_add_to_cart_button_text has been deprecated in favour of sensei_wc_paid_courses_add_to_cart_button_text
  • sensei_wc_order_statuses has been deprecated in favour of sensei_wc_paid_courses_order_statuses

Release Testing

We’d like to keep Sensei 2.0 in beta for the next 3 weeks.

If you’d like to help us test Sensei with WooCommerce Paid Courses, please fill out this form. The beta will be sent to those users who have an active Sensei license, so please be sure to enter the email address you used to purchase Sensei. UPDATE: Beta tester signups are now closed. Thank you to all those who signed up!

If you do not have an active Sensei license but are still interested in testing, you can download the free beta version of Sensei here.

To test translations, you will need to rename the .po and .mo files inside the /wp-content/languages/plugins folder from woothemes-sensei-{$locale}.{$ext} to sensei-{$locale}.{$ext}. This step is required because we still need to migrate Sensei translations from Transifex to GlotPress and have them use the new text domain. Unfortunately, we are unable to complete this step until after Sensei is listed on WordPress.org.

Also, we have not yet updated our extensions to work with Sensei 2.0. We will be working on that next while the beta is in testing. UPDATE: We now have betas for Certificates, Course Progress and Content Drip.

During testing, if you come across a bug, please submit an issue on Github or leave a comment here.

As this is a beta release, please test it on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.

Thanks to all of our testers and contributors!

Posted on

Sensei Certificates 1.1.1 Beta

A beta release of Sensei Certificates has just been released. This release contains two new translations and some bug fixes. You can download it here.

Here’s what’s in this beta release:

If you find any problems with this beta, please leave a comment or open an issue. Thanks!

Posted on

Sensei 1.12.2 Beta 2 Is Out

Sensei 1.12.2 Beta 2 is now available for testing. You can download it here.

Here’s a list of what’s been fixed in this beta:

Please report any issues you find in the comments. Thanks!