Hopp til innhold
WordPress.org

Norsk (Bokmål)

  • Tema
  • Utvidelser
  • Nyheter
  • Om
  • Mønstre
  • Delta
  • Meetups
  • Slack
  • Kontakt
  • Få WordPress
Få WordPress
WordPress.org

Plugin Directory

Conditional Block Visibility

  • Send inn en utvidelse
  • Mine favoritter
  • Logg inn
  • Send inn en utvidelse
  • Mine favoritter
  • Logg inn

Denne utvidelsen har ikke blitt testet mot noen av de siste 3 hovedutgivelsene av WordPress. Den er kanskje ikke lenger holdt vedlike eller støttet, og den kan ha kompatibilitetsproblemer med nyeste versjoner av WordPress.

Conditional Block Visibility

Av Sanad Qazi
Last ned
  • Detaljer
  • Omtaler
  • Installering
  • Utvikling
Brukerstøtte

Beskrivelse

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.

Skjermbilder

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

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.

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

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

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.

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

Installasjon

  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.

Ofte stilte spørsmål

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.

Vurderinger

Det er ingen omtaler av denne utvidelsen.

Bidragsytere og utviklere

«Conditional Block Visibility» er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen:

Bidragsytere
  • Sanad Qazi

Oversett «Conditional Block Visibility» til ditt språk.

Interessert i utvikling?

Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.

Endringslogg

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.

Meta

  • Versjon 1.0.3
  • Sist oppdatert 1 år siden
  • Aktive installasjoner Færre enn 10
  • WordPress-versjon 5.8 eller nyere
  • Testet opp til 6.7.5
  • PHP-versjon 7.4 eller nyere
  • Språk
    English (US)
  • Stikkord
    block visibilityLogin Statususer roles
  • Avansert visning

Vurderinger

No reviews have been submitted yet.

Your review

Se alle omtalene

Bidragsytere

  • Sanad Qazi

Brukerstøtte

Har du noe å si? Trenger du hjelp?

Vis brukerstøtteforumet

Donér

Vil du støtte videreutviklingen av denne utvidelsen?

Doner til denne utvidelsen

  • Om
  • Nyheter
  • Hosting
  • Personvern
  • Fremvisning
  • Temaer
  • Utvidelser
  • Mønstre
  • Lær
  • Brukerstøtte
  • Utviklere
  • WordPress.tv ↗
  • Bli involvert
  • Arrangementer
  • Doner ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Norsk (Bokmål)

  • Besøk vår konto på X
  • Visit our Bluesky account
  • Besøk vår Mastodon-konto
  • Visit our Threads account
  • Besøk vår Facebook-side
  • Besøk vår Instagram-konto
  • Besøk vår LinkedIn-konto
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Kode er poesi.
The WordPress® trademark is the intellectual property of the WordPress Foundation.