Modify the course button

Home Forums Legacy Support Support queries How-to & Troubleshooting Modify the course button

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35307
    Eniferum
    Participant
    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?
    #35480
    H.K. Latiyan
    Participant
    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; }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Modify the course button’ is closed to new replies.