This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wplms_course_creation_tabs',function ($settings){ | |
if(current_user_can('manage_options')) | |
return $settings; | |
foreach ($settings['course_pricing']['fields'] as $key => $setting) { | |
if($setting['id']=='vibe_product'){ | |
unset($settings['course_pricing']['fields'][$key]); | |
break; | |
} | |
} | |
return $settings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_footer',function(){ | |
?> | |
<script> | |
jQuery(document).ready(function(){ | |
jQuery('a.vbpregister').on('click',function(event){ | |
event.preventDefault(); | |
event.stopPropagation(); | |
$.magnificPopup.open({ | |
items: { | |
src: '<div class="white-popup"><a class="button full" href="'+jQuery(this).attr('href')+'">Register as Student</a><a class="button full" href="<?php echo get_permalink(vibe_get_option('teacher_form'));?>">Register as Instructor</a></div>', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function(){ | |
jQuery('.course_cat_nav ul li a').attr('title',''); | |
}); | |
</script> |