Hi guys,
I need to modify the course button, in particular I want to remove the "click to renew" option of the button when the course has expired. In previous version it was possible with calling a modified "the_course_button" function in the template file. Now this has been replaced and i can't find a hook or filter to achive this anymore. How can i apply my modifications instead?
You can use this code in the wplms-customizer.php file present in your wplms customizer plugin:
add_filter('wplms_expired_course_button','custom_remove_course_renew_option',9,1);
function custom_remove_course_renew_option($html){
if(is_user_logged_in()){
$html = '<a class="course_button full button">'.__('Course Expired','vibe').'</a>';
}
return $html;
}