Disable Badges in WPLMS

[Version 4 incompatibility reported]

Using this tip you can disable Badges settings in WPLMS. Note this will only disable the setting from course creation process both at the backend and the front end.

Paste the following Code in your child theme – functions.php file :

add_filter('wplms_course_metabox','wplms_remove_badge_from_course_backend');
function wplms_remove_badge_from_course_backend($settings){
	unset($settings['vibe_course_badge']);
	unset($settings['vibe_course_badge_percentage']);
	unset($settings['vibe_course_badge_title']);
	return $settings;
}

add_filter('wplms_course_creation_tabs','wplms_remove_badge_from_course_frontend',8);
function wplms_remove_badge_from_course_frontend($settings){
	unset($settings['course_settings']['fields'][19]);
	unset($settings['course_settings']['fields'][20]);
	unset($settings['course_settings']['fields'][21]);
	unset($settings['course_settings']['fields'][22]);
	return $settings;
}

 

Was this article helpful?

Related Articles

Leave A Comment?