Title: User Block Visibility
Author: noraconley
Published: <strong>Kafuumuulampawu 13, 2019</strong>
Last modified: Kafuumuulampawu 13, 2019

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/user-block-visibility.svg)

# User Block Visibility

 By [noraconley](https://profiles.wordpress.org/noraconley/)

[Download](https://downloads.wordpress.org/plugin/user-block-visibility.zip)

 * [Details](https://lug.wordpress.org/plugins/user-block-visibility/#description)
 * [Reviews](https://lug.wordpress.org/plugins/user-block-visibility/#reviews)
 * [Development](https://lug.wordpress.org/plugins/user-block-visibility/#developers)

 [Support](https://wordpress.org/support/plugin/user-block-visibility/)

## Description

Allows authors to restrict access to blocks by user roles.

This plugin is meant to be lightweight, limited in scope, while maintaining extensibility.
If you need a hook, please reach out!

### Developer API

User Block Visibility is meant to be extensible. For example, use the filter `ubv_built_in_user_roles`
to restrict the built-in roles that are available.

To create custom restriction options, use `ubv_additional_roles` and the built-in
WordPress filter `render_block`.

To restrict access to this functionality, use `ubv_do_enqueue_sidebar`.

## Screenshots

[⌊Showing a block with visibility restricted for subscribers and users who are not
logged in.⌉⌊Showing a block with visibility restricted for subscribers and users
who are not logged in.⌉[

Showing a block with visibility restricted for subscribers and users who are not
logged in.

## FAQ

  Hey, this isn’t working with “Classic” blocks.

Classic blocks do not behave like normal blocks and do not store data along with
them, so this plugin will not work for this block type.

 This is not working for [insert block type]!

You may have found a bug! I would be happy to take a look if you wouldn’t mind to
submit a ticket in the support forum for this plugin.

## Reviews

![](https://secure.gravatar.com/avatar/0bdb6ea0dd017a0f1f28533a2901151f98fbdc970f5ba344cc3f67828d3b383a?
s=60&d=retro&r=g)

### 󠀁[Love it](https://wordpress.org/support/topic/love-it-2671/)󠁿

 [Maria Maso](https://profiles.wordpress.org/mjmaso/) Kasambula 15, 2019

This is exactly what I was looking for. Thank you!

![](https://secure.gravatar.com/avatar/8c0ced2ad5a0c50ec3a0903b1d1946b4309a9b5e4ed01ff7f8d40bc710f49e3e?
s=60&d=retro&r=g)

### 󠀁[Works as advertised…](https://wordpress.org/support/topic/works-as-advertised-589/)󠁿

 [nick6352683](https://profiles.wordpress.org/nick6352683/) Kafuumuulampawu 16, 
2019

5 star plugin obviously since it works as advertised can can be really helpful under
certain conditions. I hope the development of the plugin continues, and a feature
to also display (or not to display) the blocks for certain devices is also added(
desktop, tablet, phone). This feature to be implemented should be easier to code
because all you need to trigger the conditions are some simple CSS media queries.
Good job so far nevertheless…

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/user-block-visibility/reviews/)

## Contributors & Developers

“User Block Visibility” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ noraconley ](https://profiles.wordpress.org/noraconley/)

[Translate “User Block Visibility” into your language.](https://translate.wordpress.org/projects/wp-plugins/user-block-visibility)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/user-block-visibility/),
check out the [SVN repository](https://plugins.svn.wordpress.org/user-block-visibility/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/user-block-visibility/)
by [RSS](https://plugins.trac.wordpress.org/log/user-block-visibility/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release!

## Meta

 *  Version **1.0**
 *  Last updated **7 emyaka ago**
 *  Active installations **10+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **5.1.22**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/user-block-visibility/)
 * Tags
 * [blocks](https://lug.wordpress.org/plugins/tags/blocks/)[gutenberg](https://lug.wordpress.org/plugins/tags/gutenberg/)
   [users](https://lug.wordpress.org/plugins/tags/users/)
 *  [Advanced View](https://lug.wordpress.org/plugins/user-block-visibility/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/user-block-visibility/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/user-block-visibility/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/user-block-visibility/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/user-block-visibility/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/user-block-visibility/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/user-block-visibility/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/user-block-visibility/reviews/)

## Contributors

 *   [ noraconley ](https://profiles.wordpress.org/noraconley/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/user-block-visibility/)