I don't want my users getting in the group area for their batch, so is there any way to remove the hyperlinks from the batch labels?
http://nimb.ws/3R7uOw
Try adding the bellow code in your wplms-customizer.php file present in your wplms customizer plugin:
add_action('wp_footer',function(){
if(is_singular('course')){
?>
<script>
jQuery(document).ready(function($){
$('.course_batch h4 a').on('click',function(event){
event.preventDefault();
});
});
</script>
<?php
}
});
NOTE: This will not remove the hyperlink, but it will prevent users from clicking on it.
That code didn't work, but I modified it slightly and got the outcome I was hoping for:
/* Remove Batch Links */
add_action('wp_footer',function(){
if(is_singular('course')){
?>
jQuery(document).ready(function($){
$('.batch_list h4 a').removeAttr('href');
});
<?php
}
});
Thanks for your help on this!
Thanks for the update, so closing the topic.