Hi,
I'm trying to change the link of TAKE THIS COURSE button for
- free courses and
- non logged in users
to registration page. So instead of /?error=login I would like it to be /register/
I tried the filter solution proposed in the several threads
add_filter('wplms_take_course_button','custom_non_loggedin_user_redirect',10,2);
function custom_non_loggedin_user_redirect($html,$course_id){ .......
However this solution did not work. The TAKE THIS COURSE button still had the original link.
I have purged the cache in my browser and website.