Hi I need to remove price and duration entirely. I tried following the instructions here, but I couldn't find the mentioned paths
https://wplms.io/support/knowledge-base/remove-information-from-course-details-section/
Are there new instructions that apply to the latest version?
here is the screenshot: https://share.getcloudapp.com/ApuO55BX
hi logan,
I was actually referring to the file path. On my end the file appears to be this?
Wp -content -> Plugins -> wplms customizer -> wplms-customizer.php
is this correct?
yes, this is.
please let us know the result.
thanks, veronica.
I tried adding the line to remove the course duration but i now got the error below. Here's what I have now
https://prnt.sc/qzm44f
the error:
Fatal error: Uncaught Error: Using $this when not in object context in /home/5e079914f911d10cdcaa3caf/public_html/wp-content/plugins/wplms-customizer/wplms-customizer.php:37 Stack trace: #0 /home/5e079914f911d10cdcaa3caf/public_html/wp-settings.php(360): include_once() #1 /home/5e079914f911d10cdcaa3caf/public_html/wp-config.php(79): require_once('/home/5e079914f...') #2 /home/5e079914f911d10cdcaa3caf/public_html/wp-load.php(37): require_once('/home/5e079914f...') #3 /home/5e079914f911d10cdcaa3caf/public_html/wp-admin/admin.php(34): require_once('/home/5e079914f...') #4 {main} thrown in /home/5e079914f911d10cdcaa3caf/public_html/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 37
the error disappeared after i reverted the changes
This reply has been marked as private.
This reply has been marked as private.
Hello,
please use this code in customizer:
add_filter('wplms_course_details_widget',array($this,'logan_remove_wplms_course_details_widget'));
function logan_remove_wplms_course_details_widget($course_details){
$key1 = 'time';
$key2 = 'price';
unset($course_details[$key1]);
unset($course_details[$key2]);
return $course_details;
}