How can I check if a visitor can read a post?
I know how to check capabilities for logged in users, with
$can_read = current_user_can('read',$post-ID);
But the above code returnes false when the user is not logged. So how can I check if the visitor has access to it?
Thanks!
Topic user-roles capabilities logging Wordpress
Category Web