Hide price courses for non loget users

Home Forums Legacy Support Support queries Other issues Hide price courses for non loget users

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18285
    crisulete
    Spectator
    It will be a real help if somebody know how to hide price courses in single course page for visitors. Y want to se the prices gest loged in users.
    #18377
    H.K. Latiyan
    Participant
    Please use this code in your wplms-cumtomizer plugin->wplms-customizer.php file: add_filter('wplms_course_details_widget','custom_wplms_course_details_widget'); function custom_wplms_course_details_widget($course_details){   if(!(is_user_logged_in())){     $key = 'price';     unset($course_details[$key]);     return $course_details;   }   return $course_details; }
    #18414
    crisulete
    Spectator
    Perfect. Thank you.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide price courses for non loget users’ is closed to new replies.