PublishPress Blocks Has User Role Controls for Gutenberg

PublishPress Blocks 3.1 is available now and allows you to control which users can see a specific Gutenberg block.

The PublishPress Blocks plugin has a new “User Role Controls feature”. This makes it possible to add the following restrictions to any Gutenberg block:

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

You can add these controls to almost any block, including blocks from the WordPress core and third party plugins.


How to show a block to logged in users only

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

How to show a block to logged out users only

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

How to show a block to selected user roles

  • Go to the Block Controls panel.
  • Enable block user roles.
  • Select “Show to the selected user roles”.
  • Choose the user roles you wish to show the block.

How to hide a block from selected user roles

  • Go to the Block Controls panel.
  • Enable block user roles.
  • Select “Hide to the selected user roles”.
  • Choose the user roles you wish to hide the block.

More on these new Block Control features

Using the PublishPress Blocks plugin, you can schedule when blocks are shown, and also add user role restrictions. We're planning to add more controls shortly. Block Controls works with almost any block, including blocks from third party plugins. Click here for more on Block Controls and more on scheduling Gutenberg blocks.

  • Steve Burge

    Steve is the founder of PublishPress. He's been working with open source software for over 20 years. Originally from the UK, he now lives in Sarasota in the USA. This profile is generated by the PublishPress Authors plugin.

    View all posts

Leave a Reply

Your email address will not be published. Required fields are marked *