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
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 ?
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.
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.