このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

User Block Visibility

説明

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.

スクリーンショット

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

評価

2020年1月2日
Current Rating: 1 star (broken) This plugin doesn't follow WordPress guidelines and breaks other plugins. ------------------------- Older Rating: 5 stars It was confusing to use this plugin at first but after a minute or so I figured it out. This is a fantastic plugin. At the moment we have to select a lot of options as the plugin says hide from XXXXXXXX instead of show XXXXXXXX and this is where my problem came from. I just selected everything except Administrator and couldn't figure out what was happening at first. I quickly figured out we need to have both Administrator and user logged in both unselected, if we wanted to see the block as Administrator only though. If we only leave Administrator unselected nothing happens at all. Maybe the setting could do with an update. Advice to make it even better: Having something like the options below would allow more setting combinations and make using the plugin even easier. Hide from: Administrator logged both in & out Administrator logged in Administrator logged out Subscriber logged both in & out Subscriber logged in Subscriber logged out Etc... Just now you can't select hide from Administrator logged out and Subscriber logged in, etc., at the same time. I realize if you selected both Subscriber logged both in & out and Subscriber logged in or Subscriber logged out the two bottom options wouldn't have any effect but it would still make the plugin easier to use.
2019年7月15日
This is exactly what I was looking for. Thank you!
2019年4月16日
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...
3件のレビューをすべて表示

貢献者と開発者

User Block Visibility はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“User Block Visibility” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0

  • Initial release!