Show Block by User State

Logged-in user content is a great way to improve engagement on your WordPress site. There are many possibilities, such as providing discounts to logged-in customers through your WooCommerce store or simply providing access to exclusive content on your blog.

How to display content to logged-in users

  1. Make sure Conditional Blocks is active and installed.
  2. Select the Gutenberg block which you’d like to be visible to logged in users only
  3. In the right sidebar under conditions you’ll see the User State setting. Simply toggle this setting to Logged-in users.

The block will now only display for the users that are logged into the site while they are viewing the page. 

Blocks can also be set to be visible specifically for logged out users as well. Just set the User State option to Logged Out Users.

Logged in content by user role.

Take logged-in user content one step further by conditionally showing any block content to users who are logged in and have a specific WordPress user role.

Read more about user role conditions here.