Clanbite Social Kit General

<!-- wp:clanbite-social/player-add-friend /-->

Friend controls for logged-in visitors: Add friend, Friendship pending after a request, Unfriend when accepted, or a link to Friends settings when the profile owner sent you a request. Hidden if requests from you are ignored.

Dynamic Interactive

Block name
clanbite-social/player-add-friend
Title
Player add friend
Category
clanbite-social
Uses context
clanbite/playerId

Attributes

AttributeTypeDefaultValues
profileUserIdnumber0
buttonLabelstringAdd friend

Supports

{
    "spacing": {
        "margin": true,
        "padding": true,
        "blockGap": true
    },
    "color": {
        "text": true,
        "background": true
    },
    "typography": {
        "fontSize": true,
        "lineHeight": true
    },
    "html": false,
    "align": true,
    "interactivity": true
}

Markup

<!-- wp:clanbite-social/player-add-friend /-->

Defined in src/blocks/player-add-friend/block.json