BACK TO DIRECTORY

User Block Visibility

by noraconley

5.0
(2 ratings)

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.

Plugin Details

Active Installs
10
Total Downloads
1,781
Version
1.0
Requires WP
5.0
Requires PHP
5.6
Tested Up To
5.1.24
Added
2019-04-13
Last Updated
2019-04-13 5:32am GMT

Ratings

5
2
4
0
3
0
2
0
1
0