<!-- 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
| Attribute | Type | Default | Values |
|---|---|---|---|
showTo | string | all | One of all, guests, logged_in, roles |
hideFrom | string | none | One of none, guests, logged_in, roles |
showToRoles | array | [] | |
hideFromRoles | array | [] |
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