User Roles Control

The “User Roles Control” feature in the PublishPress Blocks plugin allows you to control who can see a specific Gutenberg block.

You can add the following restrictions to any Gutenberg block:

  • Show a block to logged in users only
  • Show a block to logged out user only
  • Show a block to selected user roles
  • Hide a block from selected user roles
  • Hide a block from everyone

Show a block to logged in users only #

  • Go to Block Controls panel.
  • Enable User roles.
  • Select “Show to logged in users”.

Show a block to logged out users only #

  • Go to Block Controls panel.
  • Enable User roles.
  • Select “Show to logged out users”.

Show a block to selected user roles #

  • Go to Block Controls panel.
  • Enable User roles.
  • Select “Show to the selected user roles”.

Hide a block from selected user roles #

  • Go to Block Controls panel.
  • Enable User roles.
  • Select “Hide from the selected user roles”

Hide a block from everyone #

  • Go to Block Controls panel.
  • Enable User roles.
  • Select “Hide from everyone”

Manage User roles control #

This control can be enabled/disabled on the Block Controls screen: