This file contains hidden or 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_front_end_quiz_end',function($quiz_id){ | |
?> | |
<div class="container"> | |
<ul class="data_stats" style="position:relative" data-id="<?php echo $quiz_id; ?>" data-type="quiz"> | |
<li><a id="download_Stats" class="button full">View quiz stats</a></li> | |
</ul> | |
<div class="main_content"> | |
</div> |
This file contains hidden or 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('init',function(){ | |
if(class_exists('ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager')){ | |
$init = new ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager(); | |
add_action( 'template_redirect', [ $init, 'register_locations' ] ,1); | |
} | |
},1); |
This file contains hidden or 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_filter('wplms_cs_get_course_unit_durations',function($human_time,$time_in_seconds){ | |
return $time_in_seconds/3600.' hours'; | |
},10,2); |
This file contains hidden or 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_filter('wplms_get_element_icon',function($icon,$type){ | |
if($type == 'video'){ | |
$icon = 'YOUR ICON CLASS'; | |
} | |
return $icon; | |
},10,2); |
This file contains hidden or 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_filter('wplms_get_course_tabs',function($tabs){ | |
unset($tabs['announcementsnews']); | |
unset($tabs['qna']); | |
unset($tabs['notes']); | |
return $tabs; | |
}); |
This file contains hidden or 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_user_course_application',function($course_id){ | |
global $wpdb; | |
$count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->usermeta} WHERE meta_key = 'apply_course$course_id'"); | |
if($count >=10){ | |
update_post_meta($course_id,'vibe_course_apply','H'); //Disable Course Applications, returns to previous pricing mode. | |
} | |
},10,1); |
This file contains hidden or 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
<?php | |
//Header File | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
?> | |
<!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<?php | |
wp_head(); |
This file contains hidden or 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_filter('jwt_auth_token_validate_before_dispatch',function($data){ | |
$data['redirect_component'] ='https://YOUR redirect page URL'; | |
return $data; | |
}); |
This file contains hidden or 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_filter('wplms_before_course_status_api',function($stop,$course_id,$user_id){ | |
$groups = bp_xprofile_get_groups( array( | |
'fetch_fields' => true | |
) ); | |
$cflag= 1; | |
foreach($groups as $group){ | |
if(!empty($group->fields)){ | |
foreach ( $group->fields as $field ) { | |
if($cflag ){ |
This file contains hidden or 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
class WPLMS_Course_Leaderboard{ | |
public static $instance; | |
public static function init(){ | |
if ( is_null( self::$instance ) ) | |
self::$instance = new WPLMS_Course_Leaderboard(); | |
return self::$instance; |