WordPress / API Reference
elementor_widget_code_highlight
Elementor tool. Add a syntax-highlighted Code block widget to an Elementor page
This is a read-only tool: it returns widget code highlight for your WordPress account. It changes nothing.
Ask Claude
You do not call this tool yourself. Ask for the outcome and the client picks the tool:
Widget code highlight in my WordPress account for [page id], [code].
It takes 2 required and 8 optional parameters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | integer | Yes | Page Id |
code | string | Yes | Code |
page_type | string | No | Page Type |
section_index | integer | No | Section Index |
column_index | integer | No | Column Index |
language | string | No | Language |
theme | string | No | Theme |
line_numbers | boolean | No | Line Numbers |
show_copy_button | boolean | No | Show Copy Button |
css_class | string | No | Css Class |
Related WordPress tools
elementor_widget_accordionelementor_widget_alertelementor_widget_audioelementor_widget_blockquoteelementor_widget_breadcrumbselementor_widget_button
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.