Restricted Block by User Roles


This plugin enables blocks that can be shown / hidden for each user role.

  • You can set the display switching for each authority such as “Administrator” and “Author”.
  • You can also simply specify “logged in / not logged in”.

The source code is available on github.

How to use

  • The category “Restricted” has been added to the Block Inserter.
  • There is a custom block named “Restricted Block”.
  • Select “Restricted Block” to insert a block.

If it doesn’t work

This plugin works only with PHP version 5.6 or later, WordPress 5.0 or later.
Please check your PHP version or WordPress version.


  • Restricted Block


Questo plugin fornisce 1 blocco.

  • Restricted Block


This plugin can be installed directly from your site.

  1. Log in and navigate to “Plugins” → “Add New”.
  2. Type “Restricted Block by User Roles” into the Search and hit Enter.
  3. Locate the plugin in the list of search results and click “Install Now”.
  4. Once installed, click the “Activate” link.


30 Gennaio 2021
Does not work for me. (PHP Version: 7.4.13 64 Bit OS and WordPress 5.6). The option does not appear in posts. I really wish it worked, becasuse it's exactly what i need.There are a lot of plugin that restrict posts or pages, but very few that restrict blocks within pages and posts.Please fix it.
Leggi la recensione di 1

Contributi e sviluppo

“Restricted Block by User Roles” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.


“Restricted Block by User Roles” è stato tradotto in 1 lingua. Grazie ai traduttori per i loro contributi.

Traduci “Restricted Block by User Roles” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)


  • Support for WordPress 5.8.


  • Support for WordPress 5.6
  • The icon has been renewed.




Testing Github Actions


Foxed block.json


Create block.json


  • Support for WordPress 5.5
  • Added the function to display the block only to non-login users.


Edit radme.txt


Initial working version.