Block Access Allows You to Control Blocks for User Roles

Block Access

“Block Access” is one of the most popular features in the PublishPress Blocks plugin. This feature allows you to control which blocks are available to different user roles.

For example, if you want to prevent some user roles from adding “Table” blocks, you can block them from doing that with this feature.

In version 2.10 of Blocks, we've simplified the “Block Access” feature. The system is now based on user roles and is very similar to the PublishPress Capabilities plugin.

  • To get started, go to “Blocks”, then “Block Access”.
  • In the top-left corner, you can choose the user role you want to edit.
Disable Blocks
Disable Blocks
  • You can enable/disable blocks in Gutenberg by clicking on them.
  • When you're finished, press the “Save Block Access” button to update the user role.
Screen Shot 2020 12 10 At 13.04.08
  • Once saved, the blocks will be available (or not available) in the post editor when the user creates content.
Screen Shot 2020 12 10 At 13.11.06

An example of Block Access in action

One of the most common uses of the Block Access feature is removing blocks for low-level users.

In the image below, I've selected the “Author” role and disabled all the blocks except for a few key blocks including Paragraph, Heading, List, and Image.

Author Block Access
Author Block Access

This next image shows what a user in the Author role will see when they write a post. =Only those few blocks are available. This is a great way to make sure that low-level users don't add the type of content that you want to restrict.

Author Blocks
Author Blocks

Tags: Author Role, Block Access, Gutenberg Blocks, Gutenberg Editor


Leave a Reply

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

Professional publishing plugins for WordPress! Get PublishPress

  • SUBSCRIBE TO OUR NEWSLETTER
  • SEARCH THIS SITE