1. Home
  2. Knowledge Base
  3. Uncanny LearnDash Toolkit Pro
  4. Reset Progress Button

Overview

The LearnDash Reset Button module enables 2 things: a course progress reset button and a course progress reset function (for developers). The button can be displayed with this shortcode or block:

[uo_reset_course_progress course_id="x"]

Block Name: Reset Button

In that example, “x” is the ID for the course, which you can look up by editing your course as an admin and looking at the “post=x” value in the URL. The “x” there is the course ID.

  • This shortcode or block can be added to any post type, including course post types. When placed on a course page, you do not need to pass in the course ID attribute.
  • When added (and the module turned on), the button will be shown on a page only if the user viewing the button has some progress recorded for the course. The button will not be displayed if the user hasn’t started the course.
  • If you want to show the button on a course page and only want to show it when users have completed the course, consider wrapping it in the course_complete shortcode included in LearnDash. See https://support.learndash.com/articles/course_complete/ for more information.

Resetting Tin Canny Data

When using the reset button with Tin Canny LearnDash Reporting, the following parameter is supported:

[uo_reset_course_progress reset_tincanny="yes"]

If the reset_tincanny parameter is set to “yes”, clicking the reset button will also delete all Tin Canny results records for that user in the target course.  Note: Due to technical constraints, Tin Canny bookmark (resume) data will not be deleted.

 

Reset Progress Button modul settings

For even more control over the button, you can click the settings button in the Toolkit Module page to edit the button text and append the name of the course to the button. The latter is helpful if you make multiple buttons available on a single page so users can distinguish them.

Now, for developers that want to use the new course reset function included in this module in other ways, here’s what you need to know to set this up (please note that this is for developer use only):

//Replace with the user ID and course ID combination to be reset
$user_id = 10;
$course_id = 100;
$reset = new \uncanny_pro_toolkit\LearnDashReset();
$reset->reset_course_progress($user_id, $course_id);

Was this article helpful?

9 replies
  1. Aaron Yeagle
    Aaron Yeagle says:

    I think it would be great to NOT have to enter in the course ID but have the system look to see what course they are in and THAT will be the course they reset. In the case of someone in mutliple ocurses, a drop down could display showing the different courses that they can reset for thmselvs.

    Reply
    • Ken Young
      Ken Young says:

      Hi Aaron, the reset button will behave that way if placed on a course page; it will automatically apply to the course page it’s placed on.
      We don’t currently have any plans to extend the functionality, but I’ve noted your feature request in our product backlog. Thanks!

      Reply
      • Aaron Yeagle
        Aaron Yeagle says:

        Ahhhh I see, its based on the course they are in. So I would put this in a widget? I have been trying to make the student profile page to be more like a dashboard / resource center so I had used the button on that page.

        Thanks!

        Reply
        • Ken Young
          Ken Young says:

          Yes, you could put it in a widget that appears only on course pages, or you could also place it directly in the content that appears on course pages.

          Reply
  2. Chris Holbrook
    Chris Holbrook says:

    Hey there UncannyOwl Team!

    Question: Can you use this RESET PROGRESS functionality on a per Lesson or per Topic? To RESET just that Lesson or just that Topic? Thank you!

    Chris

    Reply
    • Ryan
      Ryan says:

      Hi Chris,

      I’m afraid that’s not currently supported. I’m not sure that you’ll see anything related to this either (we haven’t had any other requests), but you might see some ways to make this possible in an Automator 2.x release.

      Reply
  3. Jack Ruse
    Jack Ruse says:

    I’m trying to simply reset an admin course progression and I’m getti’ nothin. I get that you guys are an advanced team but I want you to know that this is not working. I’m not even getting a reset button.

    Reply
    • Ken Young
      Ken Young says:

      Hi Jack, I’m not 100% sure from your comment, but it sounds like you’re trying to reset the course progress for another admin user with the button. The button is designed to reset the progress of only the current user, so if you want to reset the progress of another user you’ll need to switch to that user first. Also, the button won’t show up if the user has no recorded progress in the course. If you’re an admin, you can also reset a user’s progress from their profile page in the wp-admin backend. If you’re still having issues with the module, please shoot us an email at support@uncannyowl for a faster response.

      Reply

Comments/Questions

Please note that this is not an official support channel and questions/comments may go unanswered.
To request support, log in to your account and click Submit a Request.

Leave a Reply

Your email address will not be published. Required fields are marked *