removing course duration/price in Version: 3.9.8.1

Home Forums Legacy Support Support queries How-to & Troubleshooting removing course duration/price in Version: 3.9.8.1

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #241531
    buging222
    Spectator
    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?
    #241605
    logan
    Member
    here is the screenshot: https://share.getcloudapp.com/ApuO55BX
    #241626
    buging222
    Spectator
    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?
    #241741
    Veronica
    Moderator
    yes, this is. please let us know the result.  
    #241971
    buging222
    Spectator
    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
    #242007
    logan
    Member
    Hello,
    • give me the page link and screenshot of the area in which you want to make changes.
    • share admin URL and credentials in a private reply.
    • share FTP credentials so that I can make changes.
     
    #243558
    buging222
    Spectator
    This reply has been marked as private.
    #243559
    buging222
    Spectator
    This reply has been marked as private.
    #243616
    logan
    Member
    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; }
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘removing course duration/price in Version: 3.9.8.1’ is closed to new replies.