Hi
We don’t have a dynamic way of doing that kind of redirect natively in LifterLMS at this time.
However, you can add some custom code that will do that. You can either add it to your functions.php file or we have a customisations plugin you can use: https://lifterlms.com/docs/how-do-i-add-custom-code-to-lifterlms-or-lifterlms-launchpad/ (to edit this plugin you’ll want to use the Plugin Editor on the site.)
function my_llms_mark_complete( $student_id, $object_id, $object_type, $trigger ) {
if ( course id number === $object_id) {
$url = ‘link of page you want to redirect to’;
wp_safe_redirect( $url );
}
}
add_action( 'llms_mark_complete', 'my_llms_mark_complete', 999, 4 );
With this code you will want to replace the course id number with the id number of the course you want the redirect to happen on. You can find the course id number on the editing page of the course, it will be the number in the url of that page.
If you would like all course completed redirects to go to the same page then you can replace: ‘if ( 123 === $object_id)’ with ‘if ( ‘course’ === $object_type )’ to affect every course the same way.
I hope this helps!
Please let us know if you have any further questions about installing this code!
Thanks and take care,