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

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# User Block Visibility

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

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

 * [Detaljer](https://da.wordpress.org/plugins/user-block-visibility/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/user-block-visibility/#reviews)
 * [Udvikling](https://da.wordpress.org/plugins/user-block-visibility/#developers)

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

## Beskrivelse

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`.

## Skærmbilleder

[⌊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.

## Anmeldelser

![](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/) 15. juli, 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/) 16. april, 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…

 [ Læs alle 3 anmeldelser ](https://wordpress.org/support/plugin/user-block-visibility/reviews/)

## Bidragsydere & udviklere

“User Block Visibility” er open source-software. Følgende personer har bidraget 
til dette plugin.

Bidragsydere

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

[Oversæt “User Block Visibility” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/user-block-visibility)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/user-block-visibility/),
tjek [SVN repository](https://plugins.svn.wordpress.org/user-block-visibility/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/user-block-visibility/)
via [RSS](https://plugins.trac.wordpress.org/log/user-block-visibility/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0

 * Initial release!

## Meta

 *  Version **1.0**
 *  Senest opdateret **7 år siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 5.0 eller højere **
 *  Testet op til **5.1.22**
 *  PHP-version ** 5.6 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/user-block-visibility/)
 * Tags
 * [blocks](https://da.wordpress.org/plugins/tags/blocks/)[gutenberg](https://da.wordpress.org/plugins/tags/gutenberg/)
   [users](https://da.wordpress.org/plugins/tags/users/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/user-block-visibility/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

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

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

[Se alle anmeldelser.](https://wordpress.org/support/plugin/user-block-visibility/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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