Title: User Block Visibility
Author: noraconley
Published: <strong>13 Tháng 4, 2019</strong>
Last modified: 13 Tháng 4, 2019

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# User Block Visibility

 Bởi [noraconley](https://profiles.wordpress.org/noraconley/)

[Tải về](https://downloads.wordpress.org/plugin/user-block-visibility.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/user-block-visibility/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/user-block-visibility/#reviews)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/user-block-visibility/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/user-block-visibility/)

## Mô tả

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

## Ảnh màn hình

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

## Hỏi đáp

  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.

## Đánh giá

![](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 Tháng 7, 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 Tháng 4, 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…

 [ Đọc tất cả 3 đánh giá ](https://wordpress.org/support/plugin/user-block-visibility/reviews/)

## Người đóng góp & Lập trình viên

“User Block Visibility” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

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

[Dịch “User Block Visibility” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/user-block-visibility)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/user-block-visibility/),
check out [SVN repository](https://plugins.svn.wordpress.org/user-block-visibility/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/user-block-visibility/)
qua [RSS](https://plugins.trac.wordpress.org/log/user-block-visibility/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0

 * Initial release!

## Meta

 *  Phiên bản **1.0**
 *  Cập nhật lần cuối **7 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 5.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **5.1.26**
 *  Phiên bản PHP ** 5.6 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/user-block-visibility/)
 * Thẻ
 * [blocks](https://vi.wordpress.org/plugins/tags/blocks/)[gutenberg](https://vi.wordpress.org/plugins/tags/gutenberg/)
   [users](https://vi.wordpress.org/plugins/tags/users/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/user-block-visibility/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  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)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/user-block-visibility/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/user-block-visibility/)