uichemy_set_button_role
Make ONE button primary, secondary or a plain link — the per-button control, not the site-wide button design uichemy_set_button_design sets. The key is the button's own label slot (text_…), or its icon slot for an icon-only button; uichemy_get_page lists both against each button. That key is what the exported site resolves too, so this reaches WordPress and not just the canvas. A key belongs to the TEMPLATE, so the same button in a layout used on three pages changes on all three — the same way per-element text styling already behaves. Pass role: "reset" to put it back to whatever the template paints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | "tertiary" is the one the panel calls Link. | |
| buttonKey | Yes | A text_… or icon_url_… key, from uichemy_get_page. | |
| projectId | Yes |