WordPress – How do I check if a user is logged in?

I want to show unpublished posts for some reasons for not logged in users on some parameters.
Can I configure this functionality from WP admin panel or if not, where can I change this logic in code?

Related posts

Leave a Reply

1 comment