Issues in shortcodes after updating to wplms 4.0

Home Forums Legacy Support Support queries Update Issues Issues in shortcodes after updating to wplms 4.0

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #331131
    freshcom
    Participant
    Issues in shortcodes after updating to wplms 4.0
    #331132
    freshcom
    Participant
    This reply has been marked as private.
    #331133
    freshcom
    Participant
    This reply has been marked as private.
    #331251
    Anshuman Sahu
    Keymaster
    Hi this line will not work : $info = get_userdata(get_current_user_id()); as in new wplms v4 we are not using wp login system as it slows down the system. If you want to echo something using user then you can use this hook :
    
    add_action('wplms_after_quiz_message',function($quiz_id,$user_id){
    echo '';//echo your custom thing here using $user_id
    },10,2);
    
    #332107
    freshcom
    Participant
    This reply has been marked as private.
    #332203
    Anshuman Sahu
    Keymaster
    USe this code :
    add_action('wplms_after_quiz_message',function($quiz_id,$user_id){
    $user = get_user_by('id',$user_id);
    echo $user->user_nicename;//echo your custom thing here using $user_id
    },10,2);
    #332478
    freshcom
    Participant
    This reply has been marked as private.
    #332532
    Anshuman Sahu
    Keymaster
    where exactly are you putting this code . you can add this in wplms-customizer.php file in wplms customizer plugin and this only shows when quiz is submitted and a quiz completion message is set .
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Issues in shortcodes after updating to wplms 4.0’ is closed to new replies.