WordPress / API Reference
elementor_set_page_custom_js
Elementor tool. Inject custom JavaScript into an Elementor page (Elementor Pro — Page > Advanced > Custom JS)
This is a write tool: it sets page custom js 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 page custom js in my WordPress account for [page id], [js].
It takes 2 required and 2 optional parameters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | integer | Yes | Page Id |
js | string | Yes | Js |
page_type | string | No | Page Type |
position | string | No | Position |
Related WordPress tools
elementor_set_page_custom_csselementor_set_page_full_widthelementor_set_page_structureelementor_set_column_gapelementor_set_column_vertical_alignelementor_set_column_width
Before you can call it
This tool needs a connected WordPress account. The WordPress connect guide covers how to authorize it and what it unlocks, and the quickstart gets a client talking to the server in about five minutes.
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.