Това разширение не е обновявано повече от 2 години. Може вече да не се поддържа и да има проблеми със съвместимостта при използването му на по-нови версии на 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.

ЧЗВ

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.

Отзиви

16.04.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…
Прочетете всички 3 отзива

Сътрудници и разработчици

“User Block Visibility” е софтуер с отворен код. Към разширението са допринесли следните хора:

Сътрудници

Превеждане на “User Block Visibility” на вашия език.

Имате интерес към разработване?

Преглеждане на кода, разглеждане на SVN хранилище, или абонамент към програмната история (log) чрез RSS.

Списък с промени

1.0

  • Initial release!