WordPress / API Reference
elementor_set_element_attributes
Elementor tool. Set custom HTML attributes on an Elementor element (e.g. data-*, aria-*, id for JS hooks)
This is a write tool: it sets element attributes in your WordPress account. Claude asks you to confirm before it runs.
Ask Claude
You do not call this tool yourself. Ask for the outcome and the client picks the tool:
Set element attributes in my WordPress account.
It takes 0 required and 4 optional parameters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | integer | No | Page Id |
page_type | string | No | Page Type |
element_id | string | No | Element Id |
attributes | array | No | Attributes |
Related WordPress tools
elementor_set_element_animationelementor_set_element_backgroundelementor_set_element_background_overlayelementor_set_element_blend_modeelementor_set_element_borderelementor_set_element_box_shadow
Start free — 30 tool calls a month
No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.