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?
Leave a Reply
You must be logged in to post a comment.
Use the built in function
is_user_logged_in()
for that: