Student profiles and assignements referenced on Google

Home Forums Legacy Support Support queries How-to & Troubleshooting Student profiles and assignements referenced on Google

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #138863
    excelcoaching
    Participant
    Hi there! Like the title mentions it, we just noticed that students, when looking up their own names on Google, find their profile page and assignments on Google results (first few results in Google)... This is a obviously a major concern, I just took over the management of this website and this is my first experience with wplms so I would like to know if this is normal and also how to correct this. Thanks
    #138935
    H.K. Latiyan
    Participant
    Hi, Yes, these links are accessible publicly but if the user tries to read it or comment on it, then she cannot. If you want I can provide you a code that if a non logged in user tries to access the assignments then he/she will be redirected to the homepage. Let me know if you want me to give you this code ?
    #138946
    excelcoaching
    Participant
    YES please provide this code!!! Also, what times of the day can I expect answers to questions here? I have to wait a day every time and this is really making my work slow and ineffective.
    #139037
    H.K. Latiyan
    Participant
    Hi, Add the below code in your wplms-customizer.php file present in your wplms customizer plugin: add_action('template_redirect',function(){   if( is_user_logged_in() ){     return;   }   global $post;   if( $post->post_type == 'wplms-assignment' ){     wp_redirect( home_url() );     exit;   } },1); This will redirect the non logged in users to the site homepage if they try to access the assignment page.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Student profiles and assignements referenced on Google’ is closed to new replies.