• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Hide Comments For Unregistered Users

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:

Register for full access

Related Tutorial

  • Remove Comments Form & Comments List For Logged Out Users – Plugin

Comments

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags