Clanbite Core

<!-- wp:clanbite/visibility-container /-->

Show or hide inner blocks for guests, logged-in users, or specific roles.

Dynamic

Block name
clanbite/visibility-container
Title
Visibility container
Category
clanbite

Attributes

AttributeTypeDefaultValues
showTostringallOne of all, guests, logged_in, roles
hideFromstringnoneOne of none, guests, logged_in, roles
showToRolesarray[]
hideFromRolesarray[]

Supports

{
    "html": false,
    "anchor": true,
    "align": [
        "wide",
        "full"
    ],
    "spacing": {
        "margin": true,
        "padding": true,
        "blockGap": true
    },
    "color": {
        "background": true,
        "text": true
    },
    "border": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
    },
    "layout": true
}

Markup

<!-- wp:clanbite/visibility-container /-->

Defined in src/blocks/core/visibility-container/block.json