This code enables you to remove the comments form and comments list for logged out users.
Based on this question from a member of the Genesis community:
I use a members module. If a non-member is on a page that is intended for members only, they see a message that this is only for registered members. So far so good. But, If comments have been made on that page (only by registered members), they are visible for everybody. How can I hide comments for unregistered users?
Demo Video – 20s
Shows how the comments are removed for logged out users and displayed when logged in.
Here’s the code for logged in members:
Leave a Reply
You must be logged in to post a comment.