Skip to content
WordPress.org

Беларуская мова

  • Тэмы
  • Плагіны
  • News
  • Падтрымка
  • Пра нас
  • Remembers
  • Blocks
  • Дапаможнік
  • Education
  • Звязацца з намі
  • Спампаваць WordPress
Спампаваць WordPress
WordPress.org

Plugin Directory

Conditional Block Visibility

  • Адправіць плагін
  • Мае абраныя
  • Увайсці
  • Адправіць плагін
  • Мае абраныя
  • Увайсці

Conditional Block Visibility

Аўтар: Sanad Qazi
Спампаваць
  • Падрабязнасці
  • Водгукі
  • Ўсталёўка
  • Распрацоўка
Падтрымка

Апісанне

Conditional Block Visibility allows you to manage the visibility of blocks based on:
– User Roles: Show or hide blocks for specific roles like Administrator, Editor, Subscriber, etc.
– Login Status: Display blocks only for logged-in or logged-out users.
– Device Type: Control visibility for desktop, tablet, and mobile devices.

This plugin provides an easy-to-use interface in the block editor for adding visibility conditions to blocks, without requiring custom code.

Features

  • Dynamic User Roles: Automatically adapts to any custom roles added by other plugins.
  • Flexible Conditions: Combine multiple conditions for precise control.
  • Device-Based Control: Ensure content visibility is optimized for different screen sizes.
  • Visibility Based on Login Status: Set different content visibility for logged-in or logged-out users.
  • Lightweight and easy to use.

License

This plugin is licensed under the GPLv2 or later. See the GPLv2 license for details.

Screenshots

  • Visibility Settings in the Editor
    The plugin adds a “Visibility Settings” panel in the block settings sidebar for easy configuration.

  • Dynamic User Roles
    Select from all available roles, including custom roles.

  • Device-Specific Controls
    Optimize visibility for desktop, tablet, and mobile devices.

  • Set Visibility Based on Login Status
    Show or hide blocks depending on whether the user is logged in or logged out.

Ўсталёўка

  1. Upload the plugin files to the /wp-content/plugins/conditional-block-visibility/ directory or install via the WordPress Plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Edit any post or page in the block editor, select a block, and configure visibility settings in the “Visibility Settings” panel in the block sidebar.

Часта задаваныя пытанні

Does this plugin work with custom user roles?

Yes, it dynamically detects all user roles, including custom roles added by other plugins.

Can I use this plugin on both the frontend and the block editor?

Yes, the visibility conditions work in the editor and the frontend.

Can I set visibility based on login status?

Yes, you can configure blocks to be visible only to logged-in users, logged-out users, or all users.

Does the plugin require any dependencies?

No, the plugin is standalone and works out of the box with the block editor.

Водгукі

На гэты плагін няма водгукаў.

Удзельнікі і распрацоўшчыкі

“Conditional Block Visibility” is open source software. The following people have contributed to this plugin.

Удзельнікі
  • Sanad Qazi

Перакласці “Conditional Block Visibility” на вашу мову.

Зацікаўлены ў распрацоўцы?

Праглядзіце код, праверце SVN рэпазітарый, або падпішыцеся на журнал распрацоўкі па RSS.

Журнал змяненняў

1.0.3

  • Fixed custom user role

1.0.2

  • Updated readme

1.0.1

  • Added visibility settings for user roles, login status, and device type.
  • Dynamic detection of user roles.

Мета

  • Версія 1.0.3
  • Апошняе абнаўленне 1 год таму
  • Актыўных установак Менш за 10
  • Версія WordPress 5.8 або вышэй
  • Правераны да версіі 6.7.5
  • Версія PHP 7.4 або вышэй
  • Мова
    English (US)
  • Тэгі
    block visibilityLogin Statususer roles
  • Пашыраны прагляд

Ацэнкі

Пакуль яшчэ няма водгукаў.

Your review

See all reviews

Удзельнікі

  • Sanad Qazi

Падтрымка

Ёсць што сказаць? Патрэбна дапамога?

Перайсці да форуму падтрымкі

Падтрымаць

Would you like to support the advancement of this plugin?

Donate to this plugin

  • Пра нас
  • Навіны
  • Хостынг
  • Прыватнасць
  • Вітрына
  • Тэмы
  • Плагіны
  • Патэрны
  • Навучанне
  • Падтрымка
  • Распрацоўнікі
  • WordPress.tv ↗
  • Далучыцца
  • Падзеі
  • Падтрымаць ↗
  • Пяць для будучыні
  • WordPress.com ↗
  • Matt
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Беларуская мова

  • Наведайце наш акаўнт у X (былы Twitter)
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Наведаеце нашу старонку на Facebook
  • Наведайце наш Instagram
  • Наведайце нашу старонку ў LinkedIn
  • Visit our TikTok account
  • Наведайце наш YouTube канал
  • Visit our Tumblr account
Код – гэта паэзія.
The WordPress® trademark is the intellectual property of the WordPress Foundation.